Documentation
¶
Overview ¶
Package identity defines the authserver's credential-free canonical-user context contract.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CanonicalUserFromContext ¶
CanonicalUserFromContext retrieves a canonical user identifier directly from the canonical-user context key. It does not infer a user from an identity. A directly stored empty string is present and returns ("", true).
Types ¶
type CanonicalUserContextKey ¶
type CanonicalUserContextKey struct{}
CanonicalUserContextKey identifies the canonical-user value in a context. It is distinct from any authenticated-principal context key.
Click to show internal directories.
Click to hide internal directories.