# Functions
AddAuthHeaders sets authentication headers for request.
AddDeprecatedHeader sets the deprecated header on the given request.
AddDownloadServiceTokenHeader sets the given download service token on the given request.
AddFlorenceHeader sets the given user access token (florence token) token on the given request.
AddRequestIdHeader add header for given correlation ID.
AddServiceTokenHeader sets the given service token on the given request.
AddUserHeader sets the given user ID on the given request.
Caller gets the caller identity from the context.
ErrInvalidOp generates an error when a patch contains a wrong 'op'.
ErrMissingMember generates an error for a missing member.
ErrUnsupportedOp generates an error for unsupported ops.
GetCollectionID gets the collection id from the request.
GetLangFromCookieOrDefault returns a language based on the lang cookie or if not valid defaults it.
GetLangFromSubDomain returns a language based on subdomain.
GetLocaleCode will grab the locale code from the request.
GetPatches gets the patches from the request body and returns it in the form of []Patch.
GetRequestId gets the correlation id on the context.
HandlerRequestID is a wrapper which adds an X-Request-Id header if one does not yet exist.
IsCallerPresent determines if an identity is present on the given context.
IsFlorenceIdentityPresent determines if a florence identity is present on the given context.
IsUserPresent determines if a user identity is present on the given context.
NewRequestID generates a random string of requested length.
SetCaller sets the caller identity on the context.
SetFlorenceHeader sets a florence Header if the corresponding Identity key is in context.
SetFlorenceIdentity sets the florence identity for authentication.
SetLocaleCode will fetch the locale code and then sets it.
SetUser sets the user identity on the context.
User gets the user identity from the context.
WithRequestId sets the correlation id on the context.
# Constants
Header constants.
Other identity-related constants.
No description provided by the author
No description provided by the author
CollectionID header and cookie keys.
CollectionID header and cookie keys.
No description provided by the author
Other identity-related constants.
Header constants.
Cookie constants.
Header constants.
No description provided by the author
No description provided by the author
No description provided by the author
Other identity-related constants.
No description provided by the author
No description provided by the author
No description provided by the author
Possible patch operations.
Possible patch operations.
Possible patch operations.
Possible patch operations.
Possible patch operations.
Possible patch operations.
Header constants.
No description provided by the author
Header constants.
No description provided by the author
# Variables
No description provided by the author
# Structs
IdentityResponse represents the response from the identity service.
Patch models an HTTP patch operation request, according to RFC 6902.
# Interfaces
CheckRequester is an interface to allow mocking of auth.CheckRequest.
# Type aliases
No description provided by the author
Params represents a generic map of key value pairs, expected by go-ns/audit Auditor.Record().
PatchOp - iota enum of possible patch operations.