Documentation
¶
Index ¶
- type ClientStore
- func (c ClientStore) AuthHandler(providerID string, state string) (http.HandlerFunc, error)
- func (c ClientStore) CodeExchangeHandler(providerID string) (CodeExchangeHandlerFunc, error)
- func (c ClientStore) RefreshAccessToken(ctx context.Context, refreshToken models.AuthToken) (models.AuthTokenSet, error)
- func (c ClientStore) UserProfileURL(providerID string) (*url.URL, error)
- type CodeExchangeHandlerFunc
- type TokenSetCallback
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClientStore ¶
type ClientStore map[string]oidcClient
func NewClientStore ¶
func NewClientStore(configs map[string]config.OIDCClient) (ClientStore, error)
func (ClientStore) AuthHandler ¶
func (c ClientStore) AuthHandler(providerID string, state string) (http.HandlerFunc, error)
func (ClientStore) CodeExchangeHandler ¶
func (c ClientStore) CodeExchangeHandler(providerID string) (CodeExchangeHandlerFunc, error)
Returns a http handler that will receive the authorization code from the identity provider. swap it for an access token and then pass the access and refresh token to the callback function.
func (ClientStore) RefreshAccessToken ¶
func (c ClientStore) RefreshAccessToken(ctx context.Context, refreshToken models.AuthToken) (models.AuthTokenSet, error)
func (ClientStore) UserProfileURL ¶
func (c ClientStore) UserProfileURL(providerID string) (*url.URL, error)
type CodeExchangeHandlerFunc ¶
type CodeExchangeHandlerFunc func(callback TokenSetCallback) http.HandlerFunc
type TokenSetCallback ¶
type TokenSetCallback func(tokenSet models.AuthTokenSet) error
Click to show internal directories.
Click to hide internal directories.