Approve a CIBA request.
curl --request POST \ --url https://auth.example.com/api/ciba/approve \ --header 'Content-Type: application/json' \ --cookie authrim_session=<authrim_session> \ --data '{ "auth_req_id": "auth_req_123", "user_id": "user_123" }'A request made before the user last withdrew the client’s consent cannot be approved: 400 consent_withdrawn, and the client has to start again. Consent state that cannot be read returns 503 temporarily_unavailable and leaves the request pending. 404 only when the request does not exist (or expired and was removed). 503 temporarily_unavailable also when the request store cannot answer or does not confirm the approval; the approval may or may not have been saved, so check the request (GET /api/ciba/requests/{auth_req_id}) before retrying. A request already decided is 400. For a ping-mode request the client’s notification endpoint is called before this response is sent, and waits at most ciba.ping_notification_timeout_ms (a failed notification is not retried and does not fail the approval).
Authorizations
Section titled “Authorizations ”Request Body required
Section titled “Request Body required ”object
Example
{ "auth_req_id": "auth_req_123", "user_id": "user_123"}Responses
Section titled “ Responses ”Successful JSON response.
object
Example
{ "success": true, "message": "Authentication request approved"}OAuth error response.
object
Example generated
{ "error": "example", "error_description": "example"}An authenticated end-user session is required.
object
Example
{ "error": "login_required", "error_description": "Authentication is required"}The authenticated user does not own the CIBA request.
object
Example
{ "error": "access_denied", "error_description": "Insufficient permissions"}OAuth error response.
object
Example generated
{ "error": "example", "error_description": "example"}OAuth error response.
object
Example generated
{ "error": "example", "error_description": "example"}