auth

package
v0.36.0 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2026 License: Apache-2.0 Imports: 5 Imported by: 8 modules, 12 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const NewPasswordRequired = "NEW_PASSWORD_REQUIRED"

Variables

This section is empty.

Functions

func IdToken added in v0.20.1

func IdToken(ctx context.Context, token *oauth2.Token) (*oauth2.Token, error)

IdToken returns the id token from the oauth2 token

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) EnsureExpiryFromIDToken added in v0.28.0

func (t *Token) EnsureExpiryFromIDToken() error

EnsureExpiryFromIDToken populates Expiry from the id_token exp claim when Expiry is zero. It returns an error if no id_token is available or parsing fails.

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()

Directories

Path Synopsis
gcp
jwt
Package xades provides protocol-neutral XAdES signing and verification.
Package xades provides protocol-neutral XAdES signing and verification.

Jump to

Keyboard shortcuts

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