Documentation
¶
Overview ¶
Package loader contains interfaces for safely accessing an OIDC Provider.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Loader ¶
type Loader interface {
Provider(ctx context.Context) (Provider, error)
LoginURL() string
SetLoginURL(string)
}
Loader is the interface for loading OIDC provider configurations.
type Provider ¶
type Provider interface {
AuthCodeURL(state string, opts ...oauth2.AuthCodeOption) string
Exchange(ctx context.Context, code string, opts ...oauth2.AuthCodeOption) (*oauth2.Token, error)
Verify(ctx context.Context, rawIDToken string) (*oidc.IDToken, error)
}
Provider represents an OIDC provider.
Click to show internal directories.
Click to hide internal directories.