plug_hyper_auth v0.2.1 HyperAuth.Scheme.Basic
Adapter for scheme Basic.
Link to this section Summary
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\””