Liberator.Resource.authorized-question-mark
You're seeing just the callback
authorized-question-mark
, go back to Liberator.Resource module for more information.
Specs
authorized?(Plug.Conn.t()) :: true | false
Check for presence ofauthentication information in the request.
Note the difference between authorized?/1
and allowed?/1
.
This function should just check for the presence of authentication information,
not the content of it.
If you implement this function to return false
, your response in handle_unauthorized
must include a WWW-Authenticate
header field containing a challenge applicable to the requested resource.
By default, always returns true
.