AshAuthentication. Phoenix. Oauth2Server. ConsentRouter
(ash_authentication_oauth2_server v0.1.0)
Copy Markdown
View Source
Plug router for the human-driven consent step of the OAuth 2.1 flow.
Handles GET /authorize (renders the consent screen) and
POST /authorize (records the consent decision and redirects with a code).
Both require a logged-in browser session — mount this behind your
browser/session pipeline, not your API pipeline.
See AshAuthentication.Phoenix.Oauth2Server.ProtocolRouter for the
client-facing protocol endpoints (token, register, metadata).
Options
:oauth2_server(required) — the user'sOauth2Serverconfig module:consent_view— module exposingrender(:consent, assigns)(default:AshAuthentication.Phoenix.Oauth2Server.ConsentView)
Summary
Functions
Callback implementation for Plug.call/2.
Callback implementation for Plug.init/1.