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 interface {
Verify(ctx context.Context, token string, claims interface{}, opt Option) error
}
AccessTokenVerifier verifies jwt access tokens or access token to userinfo, used in lib/auth.
func NewAccessTokenVerifier ¶ added in v0.9.4
func NewAccessTokenVerifier(ctx context.Context, issuer string, useUserinfoVerifier bool) (AccessTokenVerifier, error)
NewAccessTokenVerifier creates a access tok verifier.
type JWTAccessTokenVerifier ¶ added in v0.9.10
type JWTAccessTokenVerifier struct {
// contains filtered or unexported fields
}
JWTAccessTokenVerifier verifies jwt access tokens, used in lib/auth.
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 UserinfoAccesssTokenVerifier ¶ added in v0.9.10
type UserinfoAccesssTokenVerifier struct {
// contains filtered or unexported fields
}
UserinfoAccesssTokenVerifier verifies access tokens with userinfo endpoint, used in lib/auth.
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.