authn

package
v1.0.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2023 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IDTokenClaims

type IDTokenClaims struct {
	Iss               string   `json:"iss"`
	Sub               string   `json:"sub"`
	Aud               string   `json:"aud"`
	Exp               int      `json:"exp"`
	Iat               int      `json:"iat"`
	AtHash            string   `json:"at_hash"`
	CHash             string   `json:"c_hash"`
	Email             string   `json:"email"`
	EmailVerified     bool     `json:"email_verified"`
	Groups            []string `json:"groups"`
	Name              string   `json:"name"`
	PreferredUsername string   `json:"preferred_username"`
}

IDTokenClaims is the claims extract from the IDToken.

type UserIdInfo

type UserIdInfo struct {
	IDTokenClaims IDTokenClaims `json:"id_token_claims"`
	IDToken       string        `json:"id_token"`
	RefreshToken  string        `json:"refresh_token"`
}

UserIdInfo includes information about the user identity It holds the IDTokenClaims, IDToken and RefreshToken for the user

func NewUserIdInfo

func NewUserIdInfo(itc IDTokenClaims, idToken string, refreshToken string) UserIdInfo

NewUserIdInfo return a Callback Response Object.

Jump to

Keyboard shortcuts

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