Wsdataselect.Plug.Authentication (wsdataselect v1.1.22)

Copy Markdown View Source

Plug for HTTP Digest Authentication, connected to an Authentication database.

Summary

Functions

Run authentication mechanism with HTTP Digest If there is no authorization header in the request, reply with a random opaque and nonce In case of successful authentication, Returns: {:challenge_set, header_value} if the request had no authorization header. {:ok, user} if the authentication was successful {:error, message} if the authentication failed or something went wrong in the authentication process

Functions

call(conn, opts)

Run authentication mechanism with HTTP Digest If there is no authorization header in the request, reply with a random opaque and nonce In case of successful authentication, Returns: {:challenge_set, header_value} if the request had no authorization header. {:ok, user} if the authentication was successful {:error, message} if the authentication failed or something went wrong in the authentication process

init(opts)