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

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.