sso

package
v1.162.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 11, 2026 License: Apache-2.0 Imports: 12 Imported by: 0

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

func WithLogger(logger *log.Logger) func(*localOIDCLogin)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL