Documentation
¶
Index ¶
- Constants
- type OAuthServer
- type OAuthServerConfig
- func (c *OAuthServerConfig) Complete() completedOAuthServerConfig
- func (c *OAuthServerConfig) EnsureBootstrapOAuthClients(context genericapiserver.PostStartHookContext) error
- func (c *OAuthServerConfig) SkipComplete() completedOAuthServerConfig
- func (c *OAuthServerConfig) WithOAuth(handler http.Handler) (http.Handler, error)
Constants ¶
View Source
const ( OpenShiftOAuthCallbackPrefix = "/oauth2callback" OpenShiftWebConsoleClientID = "openshift-web-console" OpenShiftBrowserClientID = "openshift-browser-client" OpenShiftCLIClientID = "openshift-challenging-client" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OAuthServer ¶
type OAuthServer struct {
GenericAPIServer *genericapiserver.GenericAPIServer
PublicURL url.URL
}
OAuthServer serves non-API endpoints for openshift.
type OAuthServerConfig ¶
type OAuthServerConfig struct {
GenericConfig *genericapiserver.Config
Options configapi.OAuthConfig
// AssetPublicAddresses contains valid redirectURI prefixes to direct browsers to the web console
AssetPublicAddresses []string
// KubeClient is kubeclient with enough permission for the auth API
KubeClient kclientset.Interface
// OpenShiftClient is osclient with enough permission for the auth API
OpenShiftClient osclient.Interface
UserClient userclient.UserResourceInterface
IdentityClient userclient.IdentityInterface
UserIdentityMappingClient userclient.UserIdentityMappingInterface
OAuthAccessTokenClient oauthclient.OAuthAccessTokenInterface
OAuthAuthorizeTokenClient oauthclient.OAuthAuthorizeTokenInterface
OAuthClientClient oauthclient.OAuthClientInterface
OAuthClientAuthorizationClient oauthclient.OAuthClientAuthorizationInterface
SessionAuth *session.Authenticator
HandlerWrapper handlerWrapper
}
func NewOAuthServerConfig ¶
func NewOAuthServerConfig(oauthConfig configapi.OAuthConfig, userClientConfig *rest.Config) (*OAuthServerConfig, error)
func (*OAuthServerConfig) Complete ¶
func (c *OAuthServerConfig) Complete() completedOAuthServerConfig
Complete fills in any fields not set that are required to have valid data. It's mutating the receiver.
func (*OAuthServerConfig) EnsureBootstrapOAuthClients ¶
func (c *OAuthServerConfig) EnsureBootstrapOAuthClients(context genericapiserver.PostStartHookContext) error
TODO, this moves to the `apiserver.go` when we have it for this group TODO TODO, this actually looks a lot like a controller or an add-on manager style thing. Seems like we'd want to do this outside EnsureBootstrapOAuthClients creates or updates the bootstrap oauth clients that openshift relies upon.
func (*OAuthServerConfig) SkipComplete ¶
func (c *OAuthServerConfig) SkipComplete() completedOAuthServerConfig
SkipComplete provides a way to construct a server instance without config completion.
Source Files
¶
- auth.go
- handler_wrapper.go
- oauth_apiserver.go
Click to show internal directories.
Click to hide internal directories.