Oasis.Plug.BearerAuth.bearer_auth
You're seeing just the function
bearer_auth
, go back to Oasis.Plug.BearerAuth module for more information.
Higher level usage of Baerer HTTP authentication.
See the module docs for examples.
Options
:security
, required, a module be withOasis.Token
behaviour.:key_to_assigns
, optional, after the verification of the token, the original data will be stored into theconn.assigns
once this option defined, for example, if set it as:user_id
, we can access the verified data viaconn.assigns.user_id
in the next plug pipeline.