Documentation ¶
Index ¶
- type Client
- func (c *Client) CheckRefresh(tok *oauth2.Token) (*oauth2.Token, error)
- func (c *Client) CreateOIDCRequest(state, scopeString string) string
- func (c *Client) GetIDTokenClaims(reqContext context.Context, code string) ([]byte, error)
- func (c *Client) HandleOIDCCallback(reqContext context.Context, code string) (*oauth2.Token, *oidc.IDToken, error)
- type Config
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client for oidc
func (*Client) CheckRefresh ¶
CheckRefresh refreshes the given token if necessary, returning the original token if not.
func (*Client) CreateOIDCRequest ¶
CreateOIDCRequest create oidc request
func (*Client) GetIDTokenClaims ¶
GetIDTokenClaims handle oidc callback and get claims from ID token
Click to show internal directories.
Click to hide internal directories.