Get Consent Context
Changed onValidate an OAuth authorize request (passed as the raw query string, exactly as received by /ui/apps/auth/) and return everything the consent page needs: app identity, parsed scope sections, prior grant, and whether the caller may approve. Always 200 with an ok/error union; error outcomes carry a redirect_url only when the redirect target was validated. Requires session auth (any role — guests see a blocked state).
Request
- Base URL: http://localhost:1135
- URL: http://localhost:1135/bodhi/v1/apps/access-requests/consent
- Auth: OAuth 2 (authorization code, authorization URL /bodhi/v1/auth/initiate, token URL /bodhi/v1/auth/callback)
Query parameters
OAuth client id of the requesting app
App redirect target; exact-matched against the app's registered URIs
Forwarded to the auth server verbatim (typically 'code'); enforced there
Opaque app state, echoed back on redirects when present
PKCE challenge; forwarded verbatim, enforced by the auth server
PKCE method; forwarded verbatim, enforced by the auth server
App-facing scope string (scope_user_, scope_apps:, passthrough tokens)
Prior grant id for reauthorization
Response
Consent context or a structured OAuth error
Changes
- info
endpoint added
- info