Documentation ¶
Index ¶
Constants ¶
View Source
const ( StatusOK = 0 StatusEmptyToken = 1 StatusParseJWTFailed = 2 StatusNoIssueTimeInToken = 3 StatusNoExpirationTimeInToken = 4 StatusPublicKeyNotFound = 5 StatusWrongIssuer = 6 StatusWrongSignature = 7 StatusTokenTooEarly = 8 StatusTokenExpired = 9 StatusWrongAudience = 10 StatusWrongEmail = 11 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TokenInfo ¶
type TokenInfo struct {
// contains filtered or unexported fields
}
func NewTokenInfo ¶
func NewTokenInfo(options TokenInfoOptions) (*TokenInfo, error)
func (*TokenInfo) VerifyToken ¶
func (p *TokenInfo) VerifyToken(parent context.Context, request apis.VerifyRequest) (apis.VerifyResponse, error)
verify token implements apis.TokenInfo VerifyToken method
Click to show internal directories.
Click to hide internal directories.