constants

package
v1.51.0 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// CookieFlowBinding binds an OAuth2 state row to the browser that started
	// the flow. The state lookup hash includes this value.
	CookieFlowBinding = "oauth2_flow_binding"
)

Variables

View Source
var (
	ErrProviderNotFound             = errors.New("oauth provider not found")
	ErrAccessDenied                 = errors.New("oauth provider denied the request")
	ErrInvalidState                 = errors.New("invalid or expired oauth state")
	ErrStateProviderMismatch        = errors.New("oauth state does not belong to this provider")
	ErrInvalidCode                  = errors.New("missing oauth authorization code")
	ErrPKCEVerifierMissing          = errors.New("missing oauth PKCE verifier")
	ErrPKCEChallengeMissing         = errors.New("oauth authorization URL is missing a S256 PKCE challenge")
	ErrEmailRequired                = errors.New("oauth provider did not return an email address")
	ErrEmailNotVerified             = errors.New("oauth provider email is not verified")
	ErrProviderAccountIDRequired    = errors.New("oauth provider did not return an account id")
	ErrAccountConflict              = errors.New("oauth account conflicts with an existing account")
	ErrAccountLinkedToAnotherUser   = errors.New("oauth account is linked to another user")
	ErrEmailInUse                   = errors.New("email already in use")
	ErrTokenExpired                 = errors.New("oauth token is expired")
	ErrUnauthorized                 = errors.New("authentication required")
	ErrProviderFailure              = errors.New("oauth provider request failed")
	ErrInvalidRedirectTo            = errors.New("invalid redirect_to")
	ErrSessionNotFound              = errors.New("session not found")
	ErrProviderConfigInvalid        = errors.New("invalid oauth provider configuration")
	ErrProviderConfigurationPartial = errors.New("partial oauth provider credentials")
)

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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