Keystone Developers
Open Keystone
API reference

Auth API

OAuth

3 endpoints.

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

Get Authorization Request

Authentication

Authorization: Bearer <token>.

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
  • 4XXRefused: `code` says why
  • 5XXFailed: `code` says why

Error bodies: ErrorBody. See Errors.

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

Approve Authorization Request

Authentication

Authorization: Bearer <token>.

Parameters

NameInTypeDescription
request_idrequiredpathstring (uuid)

Responses

200Successful Response
application/jsonConsentDecision
FieldTypeDescription
redirect_torequiredstring
  • 4XXRefused: `code` says why
  • 5XXFailed: `code` says why

Error bodies: ErrorBody. See Errors.

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

Deny Authorization Request

Authentication

Authorization: Bearer <token>.

Parameters

NameInTypeDescription
request_idrequiredpathstring (uuid)

Responses

200Successful Response
application/jsonConsentDecision

ConsentDecision, expanded above.

  • 4XXRefused: `code` says why
  • 5XXFailed: `code` says why

Error bodies: ErrorBody. See Errors.