Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewHandler ¶
func NewHandler( provider *OIDCServiceProvider, oidcAuthorizeURL, backendCallbackURL, providerPrettyName, testingAutoSelect string, cookieSigningKey, cookieEncryptionKey []byte, scope kubebindv1alpha1.Scope, mgr *kubernetes.Manager, apiextensionsLister apiextensionslisters.CustomResourceDefinitionLister, ) (*handler, error)
Types ¶
type AuthCode ¶ added in v0.0.14
type AuthCode struct { RedirectURL string `json:"redirectURL"` SessionID string `json:"sid"` ClusterID string `json:"cid"` }
AuthCode is sent and received by to/from the OIDC provider. It's the state we can use to map the OIDC provider's response to the request from the client.
type OIDCServiceProvider ¶ added in v0.0.11
type OIDCServiceProvider struct {
// contains filtered or unexported fields
}
func NewOIDCServiceProvider ¶
func NewOIDCServiceProvider(clientID, clientSecret, redirectURI, issuerURL string) (*OIDCServiceProvider, error)
func (*OIDCServiceProvider) OIDCProviderConfig ¶ added in v0.0.11
func (o *OIDCServiceProvider) OIDCProviderConfig(scopes []string) *oauth2.Config
Click to show internal directories.
Click to hide internal directories.