plug_hyper_auth v0.1.0 HyperAuth.Scheme.Basic

Adapter for scheme Basic.

Link to this section Summary

Functions

Process authorization with scheme Basic

Value of www-authenticate for scheme Basic

Link to this section Functions

Link to this function process_authorization(conn, tokens, authorization, opts)

Process authorization with scheme Basic.

Examples

iex> HyperAuth.Scheme.Basic.process_authorization Plug.Test.conn(:get, “/“), [“AXBlcC5hDWUGcGFzc3dvcmQ=”], %{}, [] nil

iex> HyperAuth.Scheme.Basic.process_authorization Plug.Test.conn(:get, “/“), [“AXBlcC5hDWUGcGFzc3dvcmQ”], %{}, [] nil

Link to this function request_authenticate(conn, opts)

Value of www-authenticate for scheme Basic.

iex> HyperAuth.Scheme.Basic.request_authenticate Plug.Test.conn(:get, “/“), [] “basic”

iex> HyperAuth.Scheme.Basic.request_authenticate Plug.Test.conn(:get, “/“), realm: “admin@localhost” “basic realm=\”admin@localhost\””