Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Manager ¶
type Manager interface { GetTokenByAuthCode(ctx context.Context) (string, error) GetTokenByROPC(ctx context.Context, username, password string) (string, error) TokenExpiry() time.Time Token() (*oauth2.Token, error) }
Manager is a client for an OIDC provider capable of authenticating users and retrieving ID tokens through
- Authorization code grant flow using browser for interactive use
- Resource owner password credentials flow for non-interactive use
Manager implements the oauth2.TokenSource interface to interact with client libraries depending on the oauth2 package for obtaining auth token.
Click to show internal directories.
Click to hide internal directories.