Coherence v0.3.0 Coherence.Authentication.Basic

Implements basic HTTP authentication. To use add:

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

to your pipeline.

This module is derived from https://github.com/bitgamma/plug_auth which is derived from https://github.com/lexmag/blaguth

Summary

Functions

call(conn, opts)
create_login(email, password, user_data, opts \\ [])
encode_credentials(user, password)

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

init(opts)