Keystone Developers
Open Keystone
API reference

Auth service

OAuth

3 endpoints.

GET/api/v1/oauth/requests/{request_id}

Get Authorization Request

Parameters

NameInTypeDescription
request_idrequiredpathstring (uuid)

Responses

200Successful Response
application/jsonConsentRequestInfo
FieldTypeDescription
idrequiredstring (uuid)
client_namerequiredstring
client_hostrequiredstring
scopesrequiredScopeInfo[]
ScopeInfo[] fields
FieldTypeDescription
namerequiredstring
descriptionrequiredstring
resourcerequiredstring
expires_atrequiredstring (date-time)
statusrequiredstring
eligiblerequiredboolean
ineligible_reasonstring | null
consented_beforebooleandefault false
  • 422Validation Error

Error bodies: HTTPValidationError. See Errors.

POST/api/v1/oauth/requests/{request_id}/approve

Approve Authorization Request

Parameters

NameInTypeDescription
request_idrequiredpathstring (uuid)

Responses

200Successful Response
application/jsonConsentDecision
FieldTypeDescription
redirect_torequiredstring
  • 422Validation Error

Error bodies: HTTPValidationError. See Errors.

POST/api/v1/oauth/requests/{request_id}/deny

Deny Authorization Request

Parameters

NameInTypeDescription
request_idrequiredpathstring (uuid)

Responses

200Successful Response
application/jsonConsentDecision

ConsentDecision, expanded above.

  • 422Validation Error

Error bodies: HTTPValidationError. See Errors.