oidc

package
v0.7.8 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ClaimNonce           string = "nonce"
	ClaimAuthorizedParty string = "azp"
	ClaimAtHash          string = "at_hash"
	ClaimAuthTime        string = "auth_time"
)
View Source
const (
	ParameterNonce   string = "nonce"
	ParameterIdToken string = "id_token"
	ParameterPrompt  string = "prompt"
	ParameterMaxAge  string = "max_age"
)
View Source
const (
	ScopeOpenId        string = "openid"
	ScopeOfflineAccess string = "offline_access"
	ScopeProfile       string = "profile"
	ScopeEmail         string = "email"
	ScopeAddress       string = "address"
	ScopePhone         string = "phone"
)

Variables

This section is empty.

Functions

func HasOfflineAccessScope added in v0.7.8

func HasOfflineAccessScope(scopes []string) bool

func HasOidcScope added in v0.7.7

func HasOidcScope(scopes []string) bool

Types

type PromptType added in v0.7.8

type PromptType string

PromptType as described in https://openid.net/specs/openid-connect-core-1_0.html#AuthRequest prompt=create is not supported, as no account can be created by a user in STOPnik

const (
	PtNone          PromptType = "none"
	PtLogin         PromptType = "login"
	PtConsent       PromptType = "consent"
	PtSelectAccount PromptType = "select_account"
)

func PromptTypeFromString added in v0.7.8

func PromptTypeFromString(value string) (PromptType, bool)

type UserInfoResponse added in v0.7.8

type UserInfoResponse struct {
	config.UserProfile
	config.UserInformation
}

Jump to

Keyboard shortcuts

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