auth

Get Consent Context

Changed on

Validate 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).

get/bodhi/v1/apps/access-requests/consent

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

client_idstring

OAuth client id of the requesting app

redirect_uristring

App redirect target; exact-matched against the app's registered URIs

response_typestring

Forwarded to the auth server verbatim (typically 'code'); enforced there

statestring

Opaque app state, echoed back on redirects when present

code_challengestring

PKCE challenge; forwarded verbatim, enforced by the auth server

code_challenge_methodstring

PKCE method; forwarded verbatim, enforced by the auth server

scopestring

App-facing scope string (scope_user_, scope_apps:, passthrough tokens)

source_access_request_idstring

Prior grant id for reauthorization

Response

Consent context or a structured OAuth error

OR

Changes