Documentation
¶
Index ¶
- type Client
- func (c *Client) CheckExpiration(token string, leewaySeconds int64) error
- func (c *Client) DecodeClaims(token string) (map[string]interface{}, error)
- func (c *Client) Introspect(token string) (*IntrospectionResult, error)
- func (c *Client) ValidateIssuer(token string) error
- func (c *Client) ValidateKID(token string) error
- type Config
- type Endpoints
- type IntrospectionResult
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
}
func OidcClient ¶
Creates a new OIDC client with the given configuration.
func (*Client) CheckExpiration ¶
CheckExpiration checks if the token is expired considering leeway.
func (*Client) DecodeClaims ¶
DecodeClaims decodes the JWT claims (payload).
func (*Client) Introspect ¶
func (c *Client) Introspect(token string) (*IntrospectionResult, error)
Introspect performs token introspection and returns the result. (Client_ID and Client_Secret must be set in Config)
func (*Client) ValidateIssuer ¶
ValidateIssuer verifies that the token's issuer matches allowed patterns.
func (*Client) ValidateKID ¶
ValidateKID checks if the token's KID is present in the JWKS.
type IntrospectionResult ¶
Click to show internal directories.
Click to hide internal directories.