Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Provider ¶
type Provider interface { // Config returns an oauth2 configuration. Config(ctx context.Context, parameters *types.ConfigParameters) (*oauth2.Config, error) // Authorization gets the oauth2 authorization URL. AuthorizationURL(config *oauth2.Config, parameters *types.AuthorizationParamters) (string, error) // CodeExchange exchanges a code with an oauth2 server and returns a (possibly emulated) OIDC ID token. CodeExchange(ctx context.Context, parameters *types.CodeExchangeParameters) (*oauth2.Token, *oidc.IDToken, error) }
func New ¶
func New(providerType *unikornv1.IdentityProviderType) Provider
Click to show internal directories.
Click to hide internal directories.