Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { Issuer string ClientID string DiscoveryURL string Validity time.Duration // contains filtered or unexported fields }
Client represents an openid connect client
func (*Client) AddECDSAKey ¶
AddECDSAKey adds an ECDSA public key to the Client object
func (*Client) FetchPubKeys ¶
FetchPubKeys gets JWKS URI from the discovery document Provider public keys are then fetched from JWKS URI This could potentially be a goroutine running periodically and syncing cached public keys
func (*Client) VerifyIDToken ¶
VerifyIDToken parses and validates the ID token received from the provider Apart from the signature validation, we care about the following fields: exp - token must not be expired iat - token must not be older than a duration(specified in the config) iss - must match issuer specified in the config aud - must match the clientID specified in the config email_verified - must be true nonce - must be validated by the client
type ErrExpired ¶
type ErrExpired struct {
// contains filtered or unexported fields
}
func (ErrExpired) Error ¶
func (e ErrExpired) Error() string