Documentation ¶
Overview ¶
Package verifier provides a token verifier.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccessTokenVerifier ¶ added in v0.9.4
type AccessTokenVerifier struct {
// contains filtered or unexported fields
}
AccessTokenVerifier verifies access tokens, used in lib/auth.
func NewAccessTokenVerifier ¶ added in v0.9.4
func NewAccessTokenVerifier(ctx context.Context, issuer string) (*AccessTokenVerifier, error)
NewAccessTokenVerifier creates a access token verifier.
type Option ¶ added in v0.9.4
type Option interface {
// contains filtered or unexported methods
}
Option for verifies tokens.
func AccessTokenOption ¶ added in v0.9.4
AccessTokenOption for verifier aud/azp claims.
type PassportVerifier ¶ added in v0.9.4
type PassportVerifier struct {
// contains filtered or unexported fields
}
PassportVerifier verifies passport tokens.
func NewPassportVerifier ¶ added in v0.9.4
func NewPassportVerifier(ctx context.Context, issuer, clientID string) (*PassportVerifier, error)
NewPassportVerifier creates a passport token verifier.
type VisaVerifier ¶ added in v0.9.4
type VisaVerifier struct {
// contains filtered or unexported fields
}
VisaVerifier verifies visa tokens.
func NewVisaVerifier ¶ added in v0.9.4
func NewVisaVerifier(ctx context.Context, issuer, jku, prefix string) (*VisaVerifier, error)
NewVisaVerifier creates a visa token verifier.
Click to show internal directories.
Click to hide internal directories.