idtoken

package
v1.19.1 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2024 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
	PreferredUsername string `json:"preferred_username,omitempty"`
	AccessTokenHash   string `json:"at_hash,omitempty"`
	IPAddr            string `json:"ipaddr,omitempty"`
	EMail             string `json:"email,omitempty"`

	Groups []string `json:"groups,omitempty"`
	Roles  []string `json:"roles,omitempty"`

	// https://developers.google.com/identity/openid-connect/openid-connect#hd-param
	Hd string `json:"hd,omitempty"`

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

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

Jump to

Keyboard shortcuts

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