Documentation
¶
Index ¶
Constants ¶
View Source
const ( NuonAuthCookieName string = "X-Nuon-Auth" NuonAuthSessionName string = "nuon-auth-session" )
Cookie and session names
View Source
const ( HeaderNuonAuthUser = "X-Nuon-Auth-User" HeaderNuonAuthEmail = "X-Nuon-Auth-Email" HeaderNuonAuthSuccess = "X-Nuon-Auth-Success" HeaderNuonAuthClaims = "X-Nuon-Auth-Claims" )
Response headers for validated requests
View Source
const (
// DefaultProviderID is the ID used for the env-configured default provider.
DefaultProviderID = "default"
)
Variables ¶
View Source
var ( // ErrAccountNotAuthorized is returned when a user tries to authenticate // but has no existing account and no pending org invite. ErrAccountNotAuthorized = errors.New("account not authorized: no existing account or pending invitation found") // ErrEmailDomainNotAllowed is returned when a user tries to authenticate // but their email domain is not in the allowed domains list. ErrEmailDomainNotAllowed = errors.New("email domain not allowed") )
Functions ¶
Types ¶
type ProviderOption ¶
ProviderOption represents a login option to display in the UI.
Click to show internal directories.
Click to hide internal directories.