View Source KeenAuth.Plug (KeenAuth v0.2.2)

Summary

Functions

Callback implementation for Plug.call/2.

Fetch configuration from the private key in the connection.

Callback implementation for Plug.init/1.

Put the provided config as a private key in the connection.

Functions

Callback implementation for Plug.call/2.

@spec fetch_config(Plug.Conn.t()) :: KeenAuth.Config.t()

Fetch configuration from the private key in the connection.

It'll raise an error if configuration hasn't been set as a private key.

Callback implementation for Plug.init/1.

Link to this function

put_config(conn, config)

View Source
@spec put_config(Plug.Conn.t(), KeenAuth.Config.t()) :: Plug.Conn.t()

Put the provided config as a private key in the connection.