Sake.Auth.RouterPlug (Sake v0.1.0)

Copy Markdown View Source

The token, registration and revocation endpoints as one Plug router for hosts without Phoenix:

forward "/oauth", to: Sake.Auth.RouterPlug

Mount Sake.Auth.Authorize yourself, behind your session and login plugs.

Summary

Functions

Callback implementation for Plug.call/2.

Callback implementation for Plug.init/1.

Functions

call(conn, opts)

Callback implementation for Plug.call/2.

init(opts)

Callback implementation for Plug.init/1.