Documentation ¶
Index ¶
- Variables
- type Client
- func (c *Client) ExchangeCodeForToken(ctx *web.Context, code string, state string) (*oauth2.Token, *oidc.IDToken, error)
- func (c *Client) GetCodeVerifierAndRemoveFromSession(ctx *web.Context) (string, error)
- func (c *Client) RPInitiatedLogout(ctx *web.Context, postLogoutRedirectURI string) (string, error)
- func (c *Client) RedirectURL(ctx *web.Context) (string, error)
- func (c *Client) SetNeedToVerifyNonce(needToVerifyNonce bool)
- func (c *Client) SetNeedToVerifyState(needToVerifyState bool)
- func (c *Client) SetPKCEEnabled(isPKCEEnabled bool)
- func (c *Client) UserInfo(ctx context.Context, t *oauth2.Token) (*oidc.UserInfo, error)
- func (c *Client) UserInfoEndpoint() string
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNoEndSessionEndpoint = errors.New("this_oidc_provider_does_not_support_end_session_endpoint") ErrInvalidState = errors.New("invalid_state") ErrInvalidNonce = errors.New("invalid_nonce") ErrInvalidCodeChallenge = errors.New("invalid_code_challenge") ErrInvalidIdToken = errors.New("invalid_id_token") ErrRetrieveUserInfo = errors.New("error_retrieve_user_info") )
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) ExchangeCodeForToken ¶
func (*Client) GetCodeVerifierAndRemoveFromSession ¶
func (*Client) RPInitiatedLogout ¶
func (*Client) SetNeedToVerifyNonce ¶
func (*Client) SetNeedToVerifyState ¶
func (*Client) SetPKCEEnabled ¶
func (*Client) UserInfoEndpoint ¶
Click to show internal directories.
Click to hide internal directories.