Overview
Version information
Version : 1.0.0
URI scheme
Host : cloudentity.dev.cloudentity.com
BasePath : /api
Schemes : HTTPS
Consumes
-
application/json
Produces
-
application/json
Paths
GET /oauth/.well-known/openid-configuration
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
Openid Configuration response. |
Tags
-
oidc
POST /oauth/authorize
Description
Authenticate user using OAuth 2.0 standard. User will be redirected to provider’s login page. For more details please find RFC: https://tools.ietf.org/html/rfc6749#section-3.1
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Query |
client_id |
OAuth Client Id |
string |
Query |
redirect_uri |
Client’s redirection endpoint |
string |
Query |
response_type |
Response type * code -> server side flow * token -> client side flow |
string |
Query |
scope |
The scope of the access request |
string |
Query |
state |
An opaque value used by the client to maintain state between the request and callback |
string |
Responses
HTTP Code | Description | Schema |
---|---|---|
302 |
Redirection to provider’s login page |
No Content |
Consumes
-
application/x-www-form-urlencoded
Tags
-
oidc
GET /oauth/authorize
Description
Authenticate user using OAuth 2.0 standard. User will be redirected to provider’s login page. For more details please find RFC: https://tools.ietf.org/html/rfc6749#section-3.1
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Query |
client_id |
OAuth Client Id |
string |
Query |
redirect_uri |
Client’s redirection endpoint |
string |
Query |
response_type |
Response type * code -> server side flow * token -> client side flow |
string |
Query |
scope |
The scope of the access request |
string |
Query |
state |
An opaque value used by the client to maintain state between the request and callback |
string |
Responses
HTTP Code | Description | Schema |
---|---|---|
302 |
Redirection to provider’s login page |
No Content |
Consumes
-
application/x-www-form-urlencoded
Tags
-
oidc
GET /oauth/consents/active
Description
List applications with approved consents used by a given user.
JWT must contain content.userUuid claim.
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
The results for an active consents associated with this user. |
|
400 |
One of jwt claims is missing |
Tags
-
oidc
GET /oauth/consents/active/client/{clientId}
Description
Get active consent details.
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Path |
clientId |
Unique identifier of oauth client. |
string |
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
Active application details |
|
400 |
One of jwt claims is missing |
|
404 |
Consent has not been found |
Tags
-
oidc
DELETE /oauth/consents/active/client/{clientId}
Description
Remove consent (terminates access and refresh tokens).
Upon removal consent is stored in removed consents for historical purposes.
JWT must contain content.userUuid claim.
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Path |
clientId |
Unique identifier of oauth client. |
string |
Responses
HTTP Code | Description | Schema |
---|---|---|
204 |
Consent removed. |
No Content |
400 |
One of jwt claims is missing |
|
404 |
Consent has not been found |
Tags
-
oidc
GET /oauth/consents/removed
Description
List consents which has been explicitly removed by user. This API is used for historical purposes. JWT must contain content.userUuid claim.
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
Removed consents |
|
400 |
One of jwt claims is missing |
Tags
-
oidc
GET /oauth/consents/unused
Description
List consents for applications which hasn’t been used for some time. Time limit is defined in configuration. JWT must contain content.userUuid claim.
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
Removed consents |
|
400 |
One of jwt claims is missing |
Tags
-
oidc
POST /oauth/introspect
Description
Returns meta information surrounding the token, including whether this token is currently active. For more details please find RFC: https://tools.ietf.org/html/rfc7662#section-2
Parameters
Type | Name | Description | Schema |
---|---|---|---|
FormData |
token |
The string value of the token |
string |
FormData |
token_type_hint |
A hint about the type of the token submitted for introspection |
string |
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
Meta information about token |
|
401 |
Invalid credentials |
No Content |
Meta information about token
Name | Description | Schema |
---|---|---|
active |
Example : |
boolean |
client_id |
Example : |
string |
exp |
Example : |
integer |
expires_at |
Example : |
string |
scope |
Example : |
string |
token_type |
Example : |
string |
user_id |
Example : |
string |
Consumes
-
application/x-www-form-urlencoded
Produces
-
application/json
Tags
-
oidc
GET /oauth/jwk
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
Json Web Key Set. |
Produces
-
application/json
Tags
-
oidc
POST /oauth/register
Description
Public endpoint to register oauth clients. Disabled by default. For more details please find RFC: https://tools.ietf.org/html/rfc7591
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Body |
requestBody |
Dynamic Client Registration Request |
Responses
HTTP Code | Description | Schema |
---|---|---|
201 |
Dynamic Client Registration response. |
|
400 |
"error": "Bad Request" "error_description": "Dynamic client registration is disabled" |
No Content |
Consumes
-
application/json
Tags
-
oidc
POST /oauth/revoke
Description
Revokes token or ignores request if token is not valid For more details please find RFC: https://tools.ietf.org/html/rfc7009#section-2
Parameters
Type | Name | Description | Schema |
---|---|---|---|
FormData |
token |
The string value of the token |
string |
FormData |
token_type_hint |
A hint about the type of the token submitted for introspection |
string |
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
Done |
No Content |
400 |
OAuth Error |
Error object
Name | Description | Schema |
---|---|---|
error |
Example : |
string |
error_description |
Example : |
string |
error_uri |
Example : |
string |
Consumes
-
application/x-www-form-urlencoded
Produces
-
application/json
Tags
-
oidc
POST /oauth/token
Description
Obtain an access token by presenting its authorization grant or refresh token For more details please find RFC: https://tools.ietf.org/html/rfc6749#section-3.2 and https://tools.ietf.org/html/rfc6749#section-4.1.3
Parameters
Type | Name | Description | Schema |
---|---|---|---|
FormData |
access_token |
Access token (only applies to https://cloudentity.com/oauth/grant_type/refresh_token flow) |
string |
FormData |
client_id |
OAuth Client Id |
string |
FormData |
client_secret |
OAuth Client Secret |
string |
FormData |
code |
The authorization code received from the authorization server |
string |
FormData |
grant_type |
Depending on oauth flow, one of: "authorization_code", "refresh_token", "client_credentials", "password", "https://cloudentity.com/oauth/grant_type/refresh_token" |
string |
FormData |
password |
User password (used only in Resource Owner Password Grant) |
string |
FormData |
redirect_uri |
Client’s redirection endpoint |
string |
FormData |
refresh_token |
Refresh token |
string |
FormData |
scope |
Comma separated scopes |
string |
FormData |
username |
Username (used only in Resource Owner Password Grant) |
string |
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
Access Token |
|
400 |
OAuth Error |
Access Token
Name | Description | Schema |
---|---|---|
access_token |
Example : |
string |
expires_in |
Example : |
integer |
id_token |
JWT with user information |
string |
refresh_token |
Example : |
string |
scope |
space separated scopes |
string |
token_type |
Example : |
string |
Error object
Name | Description | Schema |
---|---|---|
error |
Example : |
string |
error_description |
Example : |
string |
error_uri |
Example : |
string |
Consumes
-
application/x-www-form-urlencoded
Produces
-
application/json
Tags
-
oidc
GET /oauth/userinfo
Description
OAuth 2.0 Protected Resource that returns Claims about the authenticated End-User. For more details please find: http://openid.net/specs/openid-connect-core-1_0.html#UserInfo
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Header |
Authorization |
Access Token |
string |
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
User Info |
|
401 |
Unauthorized |
No Content |
User Info
Name | Description | Schema |
---|---|---|
example_parameter |
Example : |
string |
sub |
Example : |
string |
Produces
-
application/json
Tags
-
oidc
Definitions
ActiveApplicationDetails
Active consent details
Name | Description | Schema |
---|---|---|
appDescription |
Application description |
string |
appName |
Application name |
string |
clientId |
OAuth client id |
string |
firstUsed |
First used |
string |
lastUsed |
Last used |
string |
resourceServers |
< resourceServers > array |
resourceServers
Name | Description | Schema |
---|---|---|
description |
resource server description |
string |
name |
resource server name |
string |
scopes |
< scopes > array |
scopes
Name | Description | Schema |
---|---|---|
description |
scope description |
string |
name |
scope name |
string |
ActiveConsents
Active consents
Name | Description | Schema |
---|---|---|
consents |
Active consents list |
< consents > array |
consents
Name | Description | Schema |
---|---|---|
appDescription |
Application description |
string |
appName |
Application name |
string |
clientId |
OAuth client id |
string |
firstUsed |
First used |
string |
lastUsed |
Last used |
string |
resourceServers |
< resourceServers > array |
resourceServers
Name | Description | Schema |
---|---|---|
description |
resource server description |
string |
name |
resource server name |
string |
scopes |
< scopes > array |
scopes
Name | Description | Schema |
---|---|---|
description |
scope description |
string |
name |
scope name |
string |
ApiError
Api error
Name | Description | Schema |
---|---|---|
code |
Error code |
string |
details |
Error details |
object |
message |
Error message |
string |
ClientDetails
Name | Description | Schema |
---|---|---|
accessTokenValiditySeconds |
access token validity in seconds |
integer |
additionalInformation |
additional information map |
object |
allowIntrospection |
allow call to introspection endpoint |
boolean |
applicationType |
application type |
string |
authorities |
authorities |
< string > array |
claimsRedirectUris |
claimsRedirectUris |
< string > array |
clearAccessTokensOnRefresh |
clear access token on refresh |
boolean |
clientDescription |
client description |
string |
clientId |
client id |
string |
clientName |
client name |
string |
clientSecret |
client secret |
string |
clientUri |
client uri |
string |
codeChallengeMethod |
code challenge method |
string |
contacts |
contacts |
< string > array |
createdAt |
created time |
string (date-time) |
customer |
customer |
string |
defaultACRvalues |
< string > array |
|
defaultMaxAge |
defaultMaxAge |
integer |
deviceCodeValiditySeconds |
device code validity in seconds |
integer |
dynamicallyRegistered |
is client dynamically registered |
boolean |
grantTypes |
grant types |
< string > array |
id |
internal id |
string |
idTokenEncryptedResponseAlg |
idTokenEncryptedResponseAlg |
string |
idTokenEncryptedResponseEnc |
idTokenEncryptedResponseEnc |
string |
idTokenSignedResponseAlg |
idTokenSignedResponseAlg |
string |
idTokenValiditySeconds |
id token validity in seconds |
integer |
initiateLoginUri |
initiateLoginUri |
string |
jwks |
JSON Web Key Set |
string |
jwksUri |
jwks uri |
string |
logoUri |
logo uri |
string |
policyUri |
policy uri |
string |
postLogoutRedirectUris |
postLogoutRedirectUris |
< string > array |
redirectUris |
< string > array |
|
refreshTokenValiditySeconds |
refresh token validity in seconds |
integer |
requestObjectSigningAlg |
request object signing alg |
string |
requestUris |
requestUris |
< string > array |
requireAuthTime |
requireAuthTime |
boolean |
resourceIds |
resourceIds |
< string > array |
responseTypes |
response types |
< string > array |
reuseRefreshToken |
reuse refresh token |
boolean |
scope |
scopes |
< string > array |
sectorIdentifierUri |
sector identifier uri |
string |
softwareId |
software id |
string |
softwareStatement |
software statement |
string |
softwareVersion |
software version |
string |
subjectType |
subject type |
string |
tokenEndpointAuthMethod |
token endpoint method |
string |
tokenEndpointAuthSigningAlg |
tokenEndpointAuthSigningAlg |
string |
tosUri |
terms of service uri |
string |
userInfoEncryptedResponseAlg |
userInfoEncryptedResponseAlg |
string |
userInfoEncryptedResponseEnc |
userInfoEncryptedResponseEnc |
string |
userInfoSignedResponseAlg |
userInfoSignedResponseAlg |
string |
ConsentDetails
Active application details
Name | Description | Schema |
---|---|---|
appDescription |
Application description |
string |
appName |
Application name |
string |
clientId |
OAuth client id (appId??) |
string |
firstUsed |
First used |
string |
lastUsed |
Last used |
string |
resourceServers |
< resourceServers > array |
resourceServers
Name | Description | Schema |
---|---|---|
description |
resource server description |
string |
name |
resource server name |
string |
scopes |
< scopes > array |
scopes
Name | Description | Schema |
---|---|---|
description |
scope description |
string |
name |
scope name |
string |
CreateClient
Name | Description | Schema |
---|---|---|
accessTokenValiditySeconds |
access token validity in seconds |
integer |
allowIntrospection |
allow call to introspection endpoint |
boolean |
applicationType |
application type |
string |
authorities |
authorities |
< string > array |
claimsRedirectUris |
claimsRedirectUris |
< string > array |
clearAccessTokensOnRefresh |
clear access token on refresh |
boolean |
clientDescription |
client description |
string |
clientId |
client id |
string |
clientName |
client name |
string |
clientSecret |
client secret |
string |
clientUri |
client uri |
string |
codeChallengeMethod |
code challenge method |
string |
contacts |
contacts |
< string > array |
createdAt |
created time |
string (date-time) |
customer |
customer |
string |
defaultACRvalues |
< string > array |
|
defaultMaxAge |
defaultMaxAge |
integer |
deviceCodeValiditySeconds |
device code validity in seconds |
integer |
dynamicallyRegistered |
is client dynamically registered |
boolean |
grantTypes |
grant types |
< string > array |
idTokenEncryptedResponseAlg |
idTokenEncryptedResponseAlg |
string |
idTokenEncryptedResponseEnc |
idTokenEncryptedResponseEnc |
string |
idTokenSignedResponseAlg |
idTokenSignedResponseAlg |
string |
idTokenValiditySeconds |
id token validity in seconds |
integer |
initiateLoginUri |
initiateLoginUri |
string |
jwks |
JSON Web Key Set |
string |
jwksUri |
jwks uri |
string |
logoUri |
logo uri |
string |
policyUri |
policy uri |
string |
postLogoutRedirectUris |
postLogoutRedirectUris |
< string > array |
redirectUris |
< string > array |
|
refreshTokenValiditySeconds |
refresh token validity in seconds |
integer |
requestObjectSigningAlg |
request object signing alg |
string |
requestUris |
requestUris |
< string > array |
requireAuthTime |
requireAuthTime |
boolean |
resourceIds |
resourceIds |
< string > array |
responseTypes |
response types |
< string > array |
reuseRefreshToken |
reuse refresh token |
boolean |
scope |
scopes |
< string > array |
sectorIdentifierUri |
sector identifier uri |
string |
softwareId |
software id |
string |
softwareStatement |
software statement |
string |
softwareVersion |
software version |
string |
subjectType |
subject type |
string |
tokenEndpointAuthMethod |
token endpoint method |
string |
tokenEndpointAuthSigningAlg |
tokenEndpointAuthSigningAlg |
string |
tosUri |
terms of service uri |
string |
userInfoEncryptedResponseAlg |
userInfoEncryptedResponseAlg |
string |
userInfoEncryptedResponseEnc |
userInfoEncryptedResponseEnc |
string |
userInfoSignedResponseAlg |
userInfoSignedResponseAlg |
string |
CreateScope
Name | Description | Schema |
---|---|---|
defaultScope |
is this a default scope for newly-registered clients |
boolean |
description |
scope description |
string |
icon |
class of the icon to display on the consent page |
string |
restricted |
is this scope restricted to admin-only registration access |
boolean |
value |
scope name |
string |
DynamicClientRegistration
Dynamic Client Registration Request
Name | Schema |
---|---|
client_name |
string |
jwks_uri |
string |
logo_uri |
string |
redirect_uris |
< string > array |
token_endpoint_auth_method |
string |
DynamicClientRegistrationResponse
Dynamic Client Registration Request
Name | Schema |
---|---|
client_id |
string |
client_id_issued_at |
string |
client_secret |
string |
client_secret_expires_at |
string |
IntrospectionResponse
Introspection response details
Name | Description | Schema |
---|---|---|
active |
true if access token is active, false otherwise |
boolean |
clientId |
OAuth client id |
string |
organizationId |
Organization identifier |
string |
scope |
space separated list of scopes granted to access token |
string |
sub |
User uuid or oauth client id |
string |
tokenType |
Token type |
string |
userId |
User uuid |
string |
IsAlive
Active consents
Name | Description | Schema |
---|---|---|
message |
alive message |
string |
JwkResponse
Name | Schema |
---|---|
keys |
< keys > array |
keys
Name | Schema |
---|---|
alg |
string |
e |
string |
kid |
string |
kty |
string |
n |
string |
OpenidConfiguration
Name | Schema |
---|---|
authorization_endpoint |
string |
claim_types_supported |
< string > array |
claims_parameter_supported |
boolean |
claims_supported |
< string > array |
code_challenge_methods_supported |
< string > array |
device_authorization_endpoint |
string |
end_session_endpoint |
string |
grant_types_supported |
< string > array |
id_token_encryption_alg_values_supported |
< string > array |
id_token_encryption_enc_values_supported |
< string > array |
id_token_signing_alg_values_supported |
< string > array |
introspection_endpoint |
string |
issuer |
string |
jwks_uri |
string |
op_policy_uri |
string |
op_tos_uri |
string |
registration_endpoint |
string |
request_object_encryption_alg_values_supported |
< string > array |
request_object_encryption_enc_values_supported |
< string > array |
request_object_signing_alg_values_supported |
< string > array |
request_parameter_supported |
boolean |
request_uri_parameter_supported |
boolean |
require_request_uri_registration |
boolean |
response_types_supported |
< string > array |
revocation_endpoint |
string |
scopes_supported |
< string > array |
service_documentation |
string |
subject_types_supported |
< string > array |
token_endpoint |
string |
token_endpoint_auth_methods_supported |
< string > array |
token_endpoint_auth_signing_alg_values_supported |
< string > array |
userinfo_encryption_alg_values_supported |
< string > array |
userinfo_encryption_enc_values_supported |
< string > array |
userinfo_endpoint |
string |
userinfo_signing_alg_values_supported |
< string > array |
RemovedConsent
Name | Description | Schema |
---|---|---|
appDescription |
Application description |
string |
appName |
Application name |
string |
clientId |
OAuth client id (appId??) |
string |
firstUsed |
First used |
string |
lastUsed |
Last used |
string |
removalDate |
Consent removal date |
string |
resourceServers |
< resourceServers > array |
resourceServers
Name | Description | Schema |
---|---|---|
description |
resource server description |
string |
name |
resource server name |
string |
scopes |
< scopes > array |
scopes
Name | Description | Schema |
---|---|---|
description |
scope description |
string |
name |
scope name |
string |
RemovedConsents
Removed consents
Name | Description | Schema |
---|---|---|
consents |
Removed consents list |
< consents > array |
consents
Name | Description | Schema |
---|---|---|
appDescription |
Application description |
string |
appName |
Application name |
string |
clientId |
OAuth client id (appId??) |
string |
firstUsed |
First used |
string |
lastUsed |
Last used |
string |
removalDate |
Consent removal date |
string |
resourceServers |
< resourceServers > array |
resourceServers
Name | Description | Schema |
---|---|---|
description |
resource server description |
string |
name |
resource server name |
string |
scopes |
< scopes > array |
scopes
Name | Description | Schema |
---|---|---|
description |
scope description |
string |
name |
scope name |
string |
ScopeDetails
Name | Description | Schema |
---|---|---|
defaultScope |
is this a default scope for newly-registered clients |
boolean |
description |
scope description |
string |
icon |
class of the icon to display on the consent page |
string |
id |
internal id |
string |
restricted |
is this scope restricted to admin-only registration access |
boolean |
value |
scope name |
string |
UnusedConsents
Unused consents
Name | Description | Schema |
---|---|---|
consents |
Unused consents list |
< consents > array |
consents
Name | Description | Schema |
---|---|---|
appDescription |
Application description |
string |
appName |
Application name |
string |
clientId |
OAuth client id (appId??) |
string |
firstUsed |
First used |
string |
lastUsed |
Last used |
string |
resourceServers |
< resourceServers > array |
resourceServers
Name | Description | Schema |
---|---|---|
description |
resource server description |
string |
name |
resource server name |
string |
scopes |
< scopes > array |
scopes
Name | Description | Schema |
---|---|---|
description |
scope description |
string |
name |
scope name |
string |
UpdateClientDetails
Name | Description | Schema |
---|---|---|
accessTokenValiditySeconds |
access token validity in seconds |
integer |
additionalInformation |
additional information map |
object |
allowIntrospection |
allow call to introspection endpoint |
boolean |
applicationType |
application type |
string |
authorities |
authorities |
< string > array |
claimsRedirectUris |
claimsRedirectUris |
< string > array |
clearAccessTokensOnRefresh |
clear access token on refresh |
boolean |
clientDescription |
client description |
string |
clientId |
client id |
string |
clientName |
client name |
string |
clientSecret |
client secret |
string |
clientUri |
client uri |
string |
codeChallengeMethod |
code challenge method |
string |
contacts |
contacts |
< string > array |
createdAt |
created time |
string (date-time) |
customer |
customer |
string |
defaultACRvalues |
< string > array |
|
defaultMaxAge |
defaultMaxAge |
integer |
deviceCodeValiditySeconds |
device code validity in seconds |
integer |
dynamicallyRegistered |
is client dynamically registered |
boolean |
grantTypes |
grant types |
< string > array |
id |
internal id |
string |
idTokenEncryptedResponseAlg |
idTokenEncryptedResponseAlg |
string |
idTokenEncryptedResponseEnc |
idTokenEncryptedResponseEnc |
string |
idTokenSignedResponseAlg |
idTokenSignedResponseAlg |
string |
idTokenValiditySeconds |
id token validity in seconds |
integer |
initiateLoginUri |
initiateLoginUri |
string |
jwks |
JSON Web Key Set |
string |
jwksUri |
jwks uri |
string |
logoUri |
logo uri |
string |
policyUri |
policy uri |
string |
postLogoutRedirectUris |
postLogoutRedirectUris |
< string > array |
redirectUris |
< string > array |
|
refreshTokenValiditySeconds |
refresh token validity in seconds |
integer |
requestObjectSigningAlg |
request object signing alg |
string |
requestUris |
requestUris |
< string > array |
requireAuthTime |
requireAuthTime |
boolean |
resourceIds |
resourceIds |
< string > array |
responseTypes |
response types |
< string > array |
reuseRefreshToken |
reuse refresh token |
boolean |
scope |
scopes |
< string > array |
sectorIdentifierUri |
sector identifier uri |
string |
softwareId |
software id |
string |
softwareStatement |
software statement |
string |
softwareVersion |
software version |
string |
subjectType |
subject type |
string |
tokenEndpointAuthMethod |
token endpoint method |
string |
tokenEndpointAuthSigningAlg |
tokenEndpointAuthSigningAlg |
string |
tosUri |
terms of service uri |
string |
userInfoEncryptedResponseAlg |
userInfoEncryptedResponseAlg |
string |
userInfoEncryptedResponseEnc |
userInfoEncryptedResponseEnc |
string |
userInfoSignedResponseAlg |
userInfoSignedResponseAlg |
string |
UpdateScope
Name | Description | Schema |
---|---|---|
defaultScope |
is this a default scope for newly-registered clients |
boolean |
description |
scope description |
string |
icon |
class of the icon to display on the consent page |
string |
restricted |
is this scope restricted to admin-only registration access |
boolean |
value |
scope name |
string |