pub async fn deny_consent(
pool: Data<PgPool>,
form: Json<ConsentDenyQuery>,
) -> Result<HttpResponse, Error>Expand description
Handles /consent/deny when the user refuses to grant scopes.
This endpoint:
- Redirects back to the client with
error=access_denied.
ยงExample
GET /api/v0/main-frontend/oauth/consent/deny?redirect_uri=http://localhost&state=random123 HTTP/1.1
Response:
HTTP/1.1 302 Found
Location: http://localhost?error=access_denied&state=random123