providers

package
v0.2.53-rc2 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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