You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 9, 2023. It is now read-only.
Add oauth http proxy for external server & Extract email from azure claim (#553)
Signed-off-by: byhsu <[email protected]>
Add oauth http proxy for external server because in on-prem cluster use cases, the client might not have access to the external network
Extract email from azure claim
Copy file name to clipboardExpand all lines: auth/config/config.go
+5
Original file line number
Diff line number
Diff line change
@@ -152,6 +152,9 @@ type Config struct {
152
152
// the `secure` setting.
153
153
AuthorizedURIs []config.URL`json:"authorizedUris" pflag:"-,Optional: Defines the set of URIs that clients are allowed to visit the service on. If set, the system will attempt to match the incoming host to the first authorized URIs and use that (including the scheme) when generating metadata endpoints and when validating audience and issuer claims. If not provided, the urls will be deduced based on the request url and the 'secure' setting."`
154
154
155
+
// HTTPProxyURL allows operators to access external OAuth2 servers using an external HTTP Proxy
156
+
HTTPProxyURL config.URL`json:"httpProxyURL" pflag:",OPTIONAL: HTTP Proxy to be used for OAuth requests."`
157
+
155
158
// UserAuth settings used to authenticate end users in web-browsers.
156
159
UserAuthUserAuthConfig`json:"userAuth" pflag:",Defines Auth options for users."`
157
160
@@ -187,6 +190,8 @@ type ExternalAuthorizationServer struct {
187
190
BaseURL config.URL`json:"baseUrl" pflag:",This should be the base url of the authorization server that you are trying to hit. With Okta for instance, it will look something like https://company.okta.com/oauth2/abcdef123456789/"`
188
191
AllowedAudience []string`json:"allowedAudience" pflag:",Optional: A list of allowed audiences. If not provided, the audience is expected to be the public Uri of the service."`
189
192
MetadataEndpointURL config.URL`json:"metadataUrl" pflag:",Optional: If the server doesn't support /.well-known/oauth-authorization-server, you can set a custom metadata url here.'"`
193
+
// HTTPProxyURL allows operators to access external OAuth2 servers using an external HTTP Proxy
194
+
HTTPProxyURL config.URL`json:"httpProxyURL" pflag:",OPTIONAL: HTTP Proxy to be used for OAuth requests."`
0 commit comments