PlugAuth.Authentication.Basic

Implements basic HTTP authentication. To use add:

plug PlugAuth.Authentication.Basic, realm: "Secret world"

to your pipeline. This module is derived from https://github.com/lexmag/blaguth

Summary

call(conn, opts)

Callback implementation for c:Plug.call/2

encode_credentials(user, password)

Returns the encoded form for the given user and password combination

init(opts)

Callback implementation for c:Plug.init/1

Functions

call(conn, opts)

Callback implementation for c:Plug.call/2.

encode_credentials(user, password)

Returns the encoded form for the given user and password combination.

init(opts)

Callback implementation for c:Plug.init/1.