auth

package
v0.15.2 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2025 License: Apache-2.0 Imports: 5 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Challenge added in v0.15.2

type Challenge struct {
	Challenge string `json:"challenge"`
}

Challenge represents challenge

func NewChallenge added in v0.15.2

func NewChallenge(challenge string) *Challenge

NewChallenge creates a new challenge error

func (Challenge) Error added in v0.15.2

func (c Challenge) Error() string

Error returns challenge erro Error returns challenge error

type Token

type Token struct {
	oauth2.Token
	IDToken string `json:"id_token,omitempty"`
}

func (Token) Expired

func (t Token) Expired(now time.Time) bool

Expired returns true if expired

func (*Token) IdentityToken

func (t *Token) IdentityToken() (*oauth2.Token, error)

func (*Token) PopulateIDToken

func (t *Token) PopulateIDToken()

func (*Token) Raw

func (t *Token) Raw() interface{}

Directories

Path Synopsis
gcp
jwt

Jump to

Keyboard shortcuts

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