Sake.Auth.RouterPlug (Sake v0.4.3)

Copy Markdown View Source

The token, registration, revocation, device authorization and pushed authorization request endpoints, and with openid: the JWKS and userinfo 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, at /oauth/authorize, and with device: Sake.Auth.DeviceVerification the same way, at /oauth/device.

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.