Documentation ¶
Index ¶
Constants ¶
View Source
const ( ConfigurationPath = "/.well-known/openid-configuration" DefaultAcceptableClockSkew = 5 * time.Minute MinimumRefreshInterval = 15 * time.Minute )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Authorizer ¶
type Authorizer struct { WellKnownConfig *WellKnownConfig AutoRefresh *jwk.AutoRefresh Audience string Authority string }
func NewAuthorizer ¶
func NewAuthorizer(authority string, audience string) (*Authorizer, error)
type TokenEndpointResponse ¶
type TokenEndpointResponse struct { AccessToken string `json:"access_token"` TokenType string `json:"token_type"` RefreshToken string `json:"refresh_token"` ExpiresIn int `json:"expires_in"` IdToken string `json:"id_token"` }
type WellKnownConfig ¶
type WellKnownConfig struct { Issuer string `json:"issuer"` JwksUri string `json:"jwks_uri"` TokenEndpoint string `json:"token_endpoint"` }
func NewWellKnownConfig ¶
func NewWellKnownConfig(authority string) (*WellKnownConfig, error)
Click to show internal directories.
Click to hide internal directories.