{"revision":"9f11a31dd2951db0","language":"en","entry":{"id":"oidc-deny","kind":"endpoint","group":"oidc","title":"Decline a sign-in","method":"POST","path":"/oidc/requests/{id}/deny","paths":[],"summary":"Uses the request and sends the app error=access_denied, or login_required and consent_required for prompt=none.","response":"{redirect}.","parameters":[{"name":"id","in":"path","required":true,"description":"The request id: 43 characters from the consent page's address (`?req=`) or its meta element."}],"sample":"/oidc/requests/{id}/deny","access":"private-code","base":"directory","notes":[],"errors":["400 invalid_json","400 invalid_parameter","404 not_found","410 request_expired","429 rate_limited","500 internal_error","503 busy"],"related":["sign-in-with-veil"],"sections":[{"kind":"code","language":"shell","code":"curl -fsS --json '{\"error\":\"access_denied\"}' \"https://veil.rip/oidc/requests/$REQUEST_ID/deny\""}],"live":false,"responses":[{"status":200,"contentType":"application/json","description":"{redirect}.","fields":[{"name":"redirect","type":"string","description":"redirect_uri with error, error_description, state and iss."}]}],"responseObjects":[],"errorFormat":"json","errorDetails":[{"status":400,"code":"invalid_json","description":"The body is not a JSON object, contains duplicate keys or has trailing data.","action":"Send one valid JSON object with `Content-Type` application/json.","scope":"endpoint"},{"status":400,"code":"invalid_parameter","description":"A path, query or body field is missing, malformed or outside its accepted range.","action":"Correct the field named in `error.message` before sending again.","scope":"endpoint"},{"status":404,"code":"not_found","description":"The requested card, key, alias, code or resource was not found.","action":"Check the identifier. Temporary codes and previews may already have expired or been used.","scope":"endpoint"},{"status":410,"code":"request_expired","description":"The sign-in request was used or is older than 30 minutes.","action":"Go back to the app and start again.","scope":"endpoint"},{"status":429,"code":"rate_limited","description":"An anonymous, signed-request or API-key allowance was exceeded.","action":"Wait at least `Retry-After` seconds. Share a queue and retry budget across your workers.","scope":"common"},{"status":500,"code":"internal_error","description":"An unexpected server error occurred. Internal details are not returned.","action":"Retry reads with bounded backoff. Check write results before sending a new signed operation.","scope":"common"},{"status":503,"code":"busy","description":"The application has reached a temporary concurrency or database limit.","action":"Wait `Retry-After` seconds and retry with bounded backoff.","scope":"common"}],"responseHeaders":[{"name":"Content-Type","value":"application/json","description":"JSON, also for errors."},{"name":"Cache-Control","value":"no-store","description":"Private: never cached."}],"bodyFields":[{"name":"error","in":"body","required":false,"description":"access_denied (default), login_required or consent_required."}],"documentationUrl":"https://veil.rip/docs/oidc-deny","supportsBrowserFetch":false,"browserMode":"local-or-server"}}