googleidinfo

package
v0.3.12 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 15, 2024 License: Apache-2.0 Imports: 16 Imported by: 2

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 Factory

type Factory struct {
}

func (*Factory) New

func (t *Factory) New(params []string) (apis.TokenInfo, error)

New implements apis.TokenInfoFactory

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

type TokenInfoOptions

type TokenInfoOptions struct {
	Timeout              int
	CertsRefreshInterval int
	Audience             []string
	EmailsRegex          []string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL