auth

package
v0.15.4 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const NewPasswordRequired = "NEW_PASSWORD_REQUIRED"

Variables

This section is empty.

Functions

This section is empty.

Types

type ChallengeError added in v0.15.3

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

ChallengeError represents challenge

func NewChallengeError added in v0.15.3

func NewChallengeError(challenge string) *ChallengeError

NewChallengeError creates a new challenge error

func (*ChallengeError) Error added in v0.15.3

func (c *ChallengeError) Error() string

Error returns challenge error

func (*ChallengeError) IsNewPasswordRequired added in v0.15.3

func (c *ChallengeError) IsNewPasswordRequired() bool

IsNewPasswordRequired returns true if new password is required

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