git.iko.soy/typeable/oauth2-proxy
on master help sign in
docs: clear up multiple-providers is unimplemented (#3046)
bae509dEvan Carroll
docs/docs/configuration/alpha_config.md+6−2
@@ -168,7 +168,7 @@ They may change between releases without notice.
168| `injectResponseHeaders` | _[[]Header](#header)_ | InjectResponseHeaders is used to configure headers that should be added<br/>to responses from the proxy.<br/>This is typically used when using the proxy as an external authentication<br/>provider in conjunction with another proxy such as NGINX and its<br/>auth_request module.<br/>Headers may source values from either the authenticated user's session<br/>or from a static secret value. |
168| `injectResponseHeaders` | _[[]Header](#header)_ | InjectResponseHeaders is used to configure headers that should be added<br/>to responses from the proxy.<br/>This is typically used when using the proxy as an external authentication<br/>provider in conjunction with another proxy such as NGINX and its<br/>auth_request module.<br/>Headers may source values from either the authenticated user's session<br/>or from a static secret value. |
169| `server` | _[Server](#server)_ | Server is used to configure the HTTP(S) server for the proxy application.<br/>You may choose to run both HTTP and HTTPS servers simultaneously.<br/>This can be done by setting the BindAddress and the SecureBindAddress simultaneously.<br/>To use the secure server you must configure a TLS certificate and key. |
169| `server` | _[Server](#server)_ | Server is used to configure the HTTP(S) server for the proxy application.<br/>You may choose to run both HTTP and HTTPS servers simultaneously.<br/>This can be done by setting the BindAddress and the SecureBindAddress simultaneously.<br/>To use the secure server you must configure a TLS certificate and key. |
170| `metricsServer` | _[Server](#server)_ | MetricsServer is used to configure the HTTP(S) server for metrics.<br/>You may choose to run both HTTP and HTTPS servers simultaneously.<br/>This can be done by setting the BindAddress and the SecureBindAddress simultaneously.<br/>To use the secure server you must configure a TLS certificate and key. |
170| `metricsServer` | _[Server](#server)_ | MetricsServer is used to configure the HTTP(S) server for metrics.<br/>You may choose to run both HTTP and HTTPS servers simultaneously.<br/>This can be done by setting the BindAddress and the SecureBindAddress simultaneously.<br/>To use the secure server you must configure a TLS certificate and key. |
171−| `providers` | _[Providers](#providers)_ | Providers is used to configure multiple providers. |
171+| `providers` | _[Providers](#providers)_ | Providers is used to configure your provider. **Multiple-providers is not<br/>yet working.** [This feature is tracked in<br/>#925](https://github.com/oauth2-proxy/oauth2-proxy/issues/926) |
172
172
173### AzureOptions
173### AzureOptions
174
174
@@ -472,7 +472,11 @@ and oidc.
472
472
473(**Appears on:** [AlphaOptions](#alphaoptions))
473(**Appears on:** [AlphaOptions](#alphaoptions))
474
474
475−Providers is a collection of definitions for providers.
475+The provider can be selected using the `provider` configuration value, or
476+set in the [`providers` array using
477+AlphaConfig](https://oauth2-proxy.github.io/oauth2-proxy/configuration/alpha-config#providers).
478+However, [**the feature to implement multiple providers is not
479+complete**](https://github.com/oauth2-proxy/oauth2-proxy/issues/926).
476
480
477### SecretSource
481### SecretSource
478
482
docs/docs/configuration/providers/index.md+1−1
@@ -25,7 +25,7 @@ Valid providers are :
25- [Nextcloud](nextcloud.md)
25- [Nextcloud](nextcloud.md)
26- [OpenID Connect](openid_connect.md)
26- [OpenID Connect](openid_connect.md)
27
27
28−The provider can be selected using the `provider` configuration value.
28+The provider can be selected using the `provider` configuration value, or set in the [`providers` array using AlphaConfig](https://oauth2-proxy.github.io/oauth2-proxy/configuration/alpha-config#providers). However, [**the feature to implement multiple providers is not complete**](https://github.com/oauth2-proxy/oauth2-proxy/issues/926).
29
29
30Please note that not all providers support all claims. The `preferred_username` claim is currently only supported by the
30Please note that not all providers support all claims. The `preferred_username` claim is currently only supported by the
31OpenID Connect provider.
31OpenID Connect provider.
docs/versioned_docs/version-7.8.x/configuration/alpha_config.md+6−2
@@ -168,7 +168,7 @@ They may change between releases without notice.
168| `injectResponseHeaders` | _[[]Header](#header)_ | InjectResponseHeaders is used to configure headers that should be added<br/>to responses from the proxy.<br/>This is typically used when using the proxy as an external authentication<br/>provider in conjunction with another proxy such as NGINX and its<br/>auth_request module.<br/>Headers may source values from either the authenticated user's session<br/>or from a static secret value. |
168| `injectResponseHeaders` | _[[]Header](#header)_ | InjectResponseHeaders is used to configure headers that should be added<br/>to responses from the proxy.<br/>This is typically used when using the proxy as an external authentication<br/>provider in conjunction with another proxy such as NGINX and its<br/>auth_request module.<br/>Headers may source values from either the authenticated user's session<br/>or from a static secret value. |
169| `server` | _[Server](#server)_ | Server is used to configure the HTTP(S) server for the proxy application.<br/>You may choose to run both HTTP and HTTPS servers simultaneously.<br/>This can be done by setting the BindAddress and the SecureBindAddress simultaneously.<br/>To use the secure server you must configure a TLS certificate and key. |
169| `server` | _[Server](#server)_ | Server is used to configure the HTTP(S) server for the proxy application.<br/>You may choose to run both HTTP and HTTPS servers simultaneously.<br/>This can be done by setting the BindAddress and the SecureBindAddress simultaneously.<br/>To use the secure server you must configure a TLS certificate and key. |
170| `metricsServer` | _[Server](#server)_ | MetricsServer is used to configure the HTTP(S) server for metrics.<br/>You may choose to run both HTTP and HTTPS servers simultaneously.<br/>This can be done by setting the BindAddress and the SecureBindAddress simultaneously.<br/>To use the secure server you must configure a TLS certificate and key. |
170| `metricsServer` | _[Server](#server)_ | MetricsServer is used to configure the HTTP(S) server for metrics.<br/>You may choose to run both HTTP and HTTPS servers simultaneously.<br/>This can be done by setting the BindAddress and the SecureBindAddress simultaneously.<br/>To use the secure server you must configure a TLS certificate and key. |
171−| `providers` | _[Providers](#providers)_ | Providers is used to configure multiple providers. |
171+| `providers` | _[Providers](#providers)_ | Providers is used to configure your provider. **Multiple-providers is not<br/>yet working.** [This feature is tracked in<br/>#925](https://github.com/oauth2-proxy/oauth2-proxy/issues/926) |
172
172
173### AzureOptions
173### AzureOptions
174
174
@@ -471,7 +471,11 @@ and oidc.
471
471
472(**Appears on:** [AlphaOptions](#alphaoptions))
472(**Appears on:** [AlphaOptions](#alphaoptions))
473
473
474−Providers is a collection of definitions for providers.
474+The provider can be selected using the `provider` configuration value, or
475+set in the [`providers` array using
476+AlphaConfig](https://oauth2-proxy.github.io/oauth2-proxy/configuration/alpha-config#providers).
477+However, [**the feature to implement multiple providers is not
478+complete**](https://github.com/oauth2-proxy/oauth2-proxy/issues/926).
475
479
476### SecretSource
480### SecretSource
477
481
docs/versioned_docs/version-7.8.x/configuration/providers/index.md+1−1
@@ -25,7 +25,7 @@ Valid providers are :
25- [Nextcloud](nextcloud.md)
25- [Nextcloud](nextcloud.md)
26- [OpenID Connect](openid_connect.md)
26- [OpenID Connect](openid_connect.md)
27
27
28−The provider can be selected using the `provider` configuration value.
28+The provider can be selected using the `provider` configuration value, or set in the [`providers` array using AlphaConfig](https://oauth2-proxy.github.io/oauth2-proxy/configuration/alpha-config#providers). However, [**the feature to implement multiple providers is not complete**](https://github.com/oauth2-proxy/oauth2-proxy/issues/926).
29
29
30Please note that not all providers support all claims. The `preferred_username` claim is currently only supported by the
30Please note that not all providers support all claims. The `preferred_username` claim is currently only supported by the
31OpenID Connect provider.
31OpenID Connect provider.
docs/versioned_docs/version-7.9.x/configuration/alpha_config.md+6−2
@@ -168,7 +168,7 @@ They may change between releases without notice.
168| `injectResponseHeaders` | _[[]Header](#header)_ | InjectResponseHeaders is used to configure headers that should be added<br/>to responses from the proxy.<br/>This is typically used when using the proxy as an external authentication<br/>provider in conjunction with another proxy such as NGINX and its<br/>auth_request module.<br/>Headers may source values from either the authenticated user's session<br/>or from a static secret value. |
168| `injectResponseHeaders` | _[[]Header](#header)_ | InjectResponseHeaders is used to configure headers that should be added<br/>to responses from the proxy.<br/>This is typically used when using the proxy as an external authentication<br/>provider in conjunction with another proxy such as NGINX and its<br/>auth_request module.<br/>Headers may source values from either the authenticated user's session<br/>or from a static secret value. |
169| `server` | _[Server](#server)_ | Server is used to configure the HTTP(S) server for the proxy application.<br/>You may choose to run both HTTP and HTTPS servers simultaneously.<br/>This can be done by setting the BindAddress and the SecureBindAddress simultaneously.<br/>To use the secure server you must configure a TLS certificate and key. |
169| `server` | _[Server](#server)_ | Server is used to configure the HTTP(S) server for the proxy application.<br/>You may choose to run both HTTP and HTTPS servers simultaneously.<br/>This can be done by setting the BindAddress and the SecureBindAddress simultaneously.<br/>To use the secure server you must configure a TLS certificate and key. |
170| `metricsServer` | _[Server](#server)_ | MetricsServer is used to configure the HTTP(S) server for metrics.<br/>You may choose to run both HTTP and HTTPS servers simultaneously.<br/>This can be done by setting the BindAddress and the SecureBindAddress simultaneously.<br/>To use the secure server you must configure a TLS certificate and key. |
170| `metricsServer` | _[Server](#server)_ | MetricsServer is used to configure the HTTP(S) server for metrics.<br/>You may choose to run both HTTP and HTTPS servers simultaneously.<br/>This can be done by setting the BindAddress and the SecureBindAddress simultaneously.<br/>To use the secure server you must configure a TLS certificate and key. |
171−| `providers` | _[Providers](#providers)_ | Providers is used to configure multiple providers. |
171+| `providers` | _[Providers](#providers)_ | Providers is used to configure your provider. **Multiple-providers is not<br/>yet working.** [This feature is tracked in<br/>#925](https://github.com/oauth2-proxy/oauth2-proxy/issues/926) |
172
172
173### AzureOptions
173### AzureOptions
174
174
@@ -472,7 +472,11 @@ and oidc.
472
472
473(**Appears on:** [AlphaOptions](#alphaoptions))
473(**Appears on:** [AlphaOptions](#alphaoptions))
474
474
475−Providers is a collection of definitions for providers.
475+The provider can be selected using the `provider` configuration value, or
476+set in the [`providers` array using
477+AlphaConfig](https://oauth2-proxy.github.io/oauth2-proxy/configuration/alpha-config#providers).
478+However, [**the feature to implement multiple providers is not
479+complete**](https://github.com/oauth2-proxy/oauth2-proxy/issues/926).
476
480
477### SecretSource
481### SecretSource
478
482
docs/versioned_docs/version-7.9.x/configuration/providers/index.md+1−1
@@ -25,7 +25,7 @@ Valid providers are :
25- [Nextcloud](nextcloud.md)
25- [Nextcloud](nextcloud.md)
26- [OpenID Connect](openid_connect.md)
26- [OpenID Connect](openid_connect.md)
27
27
28−The provider can be selected using the `provider` configuration value.
28+The provider can be selected using the `provider` configuration value, or set in the [`providers` array using AlphaConfig](https://oauth2-proxy.github.io/oauth2-proxy/configuration/alpha-config#providers). However, [**the feature to implement multiple providers is not complete**](https://github.com/oauth2-proxy/oauth2-proxy/issues/926).
29
29
30Please note that not all providers support all claims. The `preferred_username` claim is currently only supported by the
30Please note that not all providers support all claims. The `preferred_username` claim is currently only supported by the
31OpenID Connect provider.
31OpenID Connect provider.
pkg/apis/options/alpha_options.go+3−1
@@ -41,7 +41,9 @@ type AlphaOptions struct {
41 // To use the secure server you must configure a TLS certificate and key.
41 // To use the secure server you must configure a TLS certificate and key.
42 MetricsServer Server `json:"metricsServer,omitempty"`
42 MetricsServer Server `json:"metricsServer,omitempty"`
43
43
44− // Providers is used to configure multiple providers.
44+ // Providers is used to configure your provider. **Multiple-providers is not
45+ // yet working.** [This feature is tracked in
46+ // #925](https://github.com/oauth2-proxy/oauth2-proxy/issues/926)
45 Providers Providers `json:"providers,omitempty"`
47 Providers Providers `json:"providers,omitempty"`
46}
48}
47
49
pkg/apis/options/providers.go+5−1
@@ -11,7 +11,11 @@ const (
11// OIDCAudienceClaims is the generic audience claim list used by the OIDC provider.
11// OIDCAudienceClaims is the generic audience claim list used by the OIDC provider.
12var OIDCAudienceClaims = []string{"aud"}
12var OIDCAudienceClaims = []string{"aud"}
13
13
14−// Providers is a collection of definitions for providers.
14+// The provider can be selected using the `provider` configuration value, or
15+// set in the [`providers` array using
16+// AlphaConfig](https://oauth2-proxy.github.io/oauth2-proxy/configuration/alpha-config#providers).
17+// However, [**the feature to implement multiple providers is not
18+// complete**](https://github.com/oauth2-proxy/oauth2-proxy/issues/926).
15type Providers []Provider
19type Providers []Provider
16
20
17// Provider holds all configuration for a single provider
21// Provider holds all configuration for a single provider