plug_hyper_auth v0.2.1 HyperAuth.Scheme behaviour

Specification of the HTTP authentication scheme adapter.

Link to this section Summary

Callbacks

Process the authorization to return the credentials map or nil

Authenticate request to send to the client

Link to this section Callbacks

Link to this callback process_authorization(conn, tokens, authorization, opts)
process_authorization(conn :: Plug.Conn.t, tokens :: [String.t], authorization :: map, opts :: Plug.opts) ::
  nil |
  map

Process the authorization to return the credentials map or nil.

Link to this callback request_authenticate(conn, opts)
request_authenticate(conn :: Plug.Conn.t, opts :: Plug.opts) :: String.t

Authenticate request to send to the client.