idtoken

package
v1.26.0 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Claims

type Claims struct {
	oidc.TokenClaims

	Claims map[string]any `json:"-"`

	PreferredUsername string   `json:"preferred_username,omitempty"`
	AccessTokenHash   string   `json:"at_hash,omitempty"`
	IPAddr            string   `json:"ipaddr,omitempty"`
	EMail             string   `json:"email,omitempty"`
	Hd                string   `json:"hd,omitempty"`
	Roles             []string `json:"roles,omitempty"`
}

func (*Claims) GetAccessTokenHash

func (c *Claims) GetAccessTokenHash() string

GetAccessTokenHash implements the oidc.IDTokenClaims interface.

func (*Claims) UnmarshalJSON added in v1.15.0

func (c *Claims) UnmarshalJSON(data []byte) error

type IDToken added in v1.25.0

type IDToken = *oidc.Tokens[*Claims]

Jump to

Keyboard shortcuts

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