types

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: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ScopeEmail         = "email"
	ScopeProfile       = "profile"
	ScopeOpenID        = "openid"
	ScopeOfflineAccess = "offline_access"
)
View Source
const EmptyToken = "\x00\x00"

Variables

View Source
var ErrInvalidClaimType = errors.New("invalid claim type")

Functions

This section is empty.

Types

type CtxNonce added in v1.13.4

type CtxNonce struct{}

type ProviderConfig added in v1.15.0

type ProviderConfig struct {
	oauth2.Endpoint

	AuthCodeOptions []oauth2.AuthCodeOption
	Scopes          []string
}

type UserInfo added in v1.25.0

type UserInfo struct {
	Subject           string   `json:"sub,omitempty"`
	Email             string   `json:"email,omitempty"`
	PreferredUsername string   `json:"preferred_username,omitempty"`
	Groups            []string `json:"groups,omitempty"`
}

func (UserInfo) GetSubject added in v1.25.0

func (u UserInfo) GetSubject() string

Jump to

Keyboard shortcuts

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