Skip to main content

Module auth_req_token

Module auth_req_token 

Source

Functionsยง

cargo_auth_when_required
Middleware that checks if a cargo token is provided when settings.registry.auth_required is true.
token_or_session_auth_when_required
Middleware that allows either cargo token auth (Authorization header) or web session auth (signed session cookie) when settings.registry.auth_required is true.