Auth0Plug (auth0_plug v1.4.1)

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)

Exposes Jwt.get/1

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.

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

unauthorized_message()