auth0_plug v1.3.0 Auth0Plug
Documentation for Auth0Plug.
Link to this section Summary
Functions
Exposes Jwt.get/1
Whether a 401 should be returned.
Whether the path is excluded.
Sends a 401.
Return a 401 response.
Link to this section Functions
Link to this function
call(conn, options)
Link to this function
get_jwt(conn)
Exposes Jwt.get/1
Link to this function
init(options)
Link to this function
is_401?(conn)
Whether a 401 should be returned.
401s are return only when return_401 is set to true and the path is not in exclude_from_401.
Link to this function
is_excluded?(conn)
Whether the path is excluded.
Link to this function
send_401(conn)
Sends a 401.
This is a separate function so that it can be reused to send the same 401 when is not directly sent by Auth0Plug, for example to send a 401 on an ignored route.
Link to this function
unauthorized(conn)
Return a 401 response.
Link to this function