oauth

package
v1.124.0 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// URL query params used in the OAuth flow
	// Shared in a parent module so both clients and servers can use them
	QueryParamCallback        = "callback"
	QueryParamLongLived       = "long-lived"
	QueryParamAuth0Connection = "connection"
	// PKCE-style challenge that opts a login into the handoff code exchange
	QueryParamCodeChallenge       = "code_challenge"
	QueryParamCodeChallengeMethod = "code_challenge_method"
	// Callback parameter that carries the handoff code
	QueryParamHandoff = "handoff"
	// Callback parameter that carries the session token in the legacy flow
	QueryParamLegacyToken = "t"
	// Post-login redirect inside a callback URL
	QueryParamReturnTo = "returnTo"

	CodeChallengeMethodS256 = "S256"
)

Variables

This section is empty.

Functions

func ValidS256Challenge added in v1.124.0

func ValidS256Challenge(challenge string) bool

ValidS256Challenge tells if the value has the shape of a S256 challenge

func VerifyS256 added in v1.124.0

func VerifyS256(verifier, challenge string) bool

VerifyS256 tells, in constant time, if the verifier matches the S256 challenge

Types

This section is empty.

Jump to

Keyboard shortcuts

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