Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetIDToken ¶
func GetIDToken(ctx context.Context, clientID, issuerURL string, opts ...LocalOIDCLoginOption) (string, time.Time, error)
GetIDToken obtains an ID token from an OIDC provider, following the Authorization Code Flow with PKCE: https://auth0.com/docs/get-started/authentication-and-authorization-flow/authorization-code-flow-with-pkce
func WithLocalServerPort ¶
func WithLocalServerPort(port uint16) func(*localOIDCLogin)
WithLocalServerPort sets the port to use for the local server which handles SSO authentication flow.
func WithLogger ¶
WithLogger sets the logger to use for the local OIDC login tool.
Types ¶
type LocalOIDCLoginOption ¶
type LocalOIDCLoginOption func(*localOIDCLogin)
LocalOIDCLoginOption is a function that can be used to configure a local OIDC login tool.
Click to show internal directories.
Click to hide internal directories.