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
POST /authn/identifierpassword
Description
Authenticates the identified user based on the password
supplied.
If authentication succeeds, a new session is created; the session token is returned in the response.
If device print is supplied in the request body and authentication succeeds, the device will be recognized and deviceToken will be issued.
Note that this API returns an Authentication.InvalidCredentials
error in either of the following cases:
- No user was found by the supplied identifier
- The password was incorrect for the identified user
- Provided deviceToken doesn’t match supplied in the request body device print
If a session token is provided but is invalid, an Authentication.Unauthenticated
error will be returned.
If a deviceToken is provided but is invalid, an Authentication.InvalidDeviceToken
error will be returned.
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Header |
deviceToken |
Token issued by Devices Service after successfull device recognition |
string |
Body |
body |
Body of authentication with identifier and password request |
Responses
HTTP Code | Description | Schema |
---|---|---|
201 |
Session was created |
|
400 |
Response details:
|
|
401 |
Response details:
|
|
422 |
Validation error; some of the provided attributes did not pass the validation rules. Response details:
|
|
423 |
Response details:
|
Tags
-
authn
Security
Type | Name |
---|---|
apiKey |
Example HTTP response
Response 201
{
"token" : "1323123-3424324324-4234324324-123123432",
"deviceToken" : "e09b98e2-c021-41d5-b4a0-4c22f8065817"
}
POST /authn/identifiertotp
Description
Authenticates the identified user based on the time-based one-time password ("TOTP") supplied.
If authentication succeeds, a new session is created; the session token is returned in the response.
If device print is supplied in the request body and authentication succeeds, the device will be recognized and deviceToken will be issued.
Note that this API returns an Authentication.InvalidCredentials
error in any of the following cases:
- No user was found by the supplied identifier
- The user’s authSecret
is not yet accepted
- The TOTP token was incorrect
- If a deviceToken is provided but is invalid, an Authentication.InvalidDeviceToken
error will be returned.
If a session token is provided but is invalid, an Authentication.Unauthenticated
error will be returned.
If a deviceToken is provided but is invalid, an Authentication.InvalidDeviceToken
error will be returned.
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Header |
deviceToken |
Token issued by Devices Service after successfull device recognition |
string |
Body |
body |
Body of authentication with identifier and TOTP request |
Responses
HTTP Code | Description | Schema |
---|---|---|
201 |
Session was created |
|
400 |
Response details:
|
|
401 |
Response details:
|
|
422 |
Validation error; some of the provided attributes did not pass the validation rules. Response details:
|
Tags
-
authn
Security
Type | Name |
---|---|
apiKey |
Example HTTP response
Response 201
{
"token" : "1323123-3424324324-4234324324-123123432",
"deviceToken" : "e09b98e2-c021-41d5-b4a0-4c22f8065817"
}
POST /authn/kba
Description
Authenticates a user identified by the provided session based on the (case-insensitive) knowledge-based answers supplied.
Upon success, the token will be refreshed and its properties will be updated.
If the provided token is invalid, or the user provides incorrect responses to some questions, an Authentication.Unauthenticated
error will be thrown.
If the user has not previously stored responses to KBA questions, a User.KbaNotAccepted
error will be thrown.
If the central KBA config allows a user to respond to more more questions than the minimum required, and
no challenge questions have been previously set for the user, a User.KbaNotPending
error will be thrown.
If the user responds to more questions than the required questions in the current challenge set, a
User.ValidationError
will be thrown with appropriate details about which questions were extraneous.
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Body |
body |
User login data |
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
Session has been updated |
No Content |
400 |
Response details:
|
|
401 |
Login unsuccessful The identifier / KBA responses were not valid. Detailed reason is returned in the response. Response detail
|
|
404 |
Response details:
|
|
422 |
Validation error; some of the provided attributes did not pass the validation rules. Response details:
|
Tags
-
authn
Security
Type | Name |
---|---|
oauth2 |
|
oauth2 |
|
oauth2 |
|
apiKey |
POST /authn/otp
Description
Authenticates a user identified by the provided session based on the one-time password ("OTP") supplied.
Upon success, the token will be refreshed, and its properties will be updated.
OTPs are only acceptable for authentication if they were sent to an identifier address (identifier email or mobile).
Note that this API returns an Authentication.InvalidCredentials
error in any of the following cases:
- No OTP was stored for the user
- The OTP supplied in the request was incorrect
- The authentication was attempted using an OTP that had been sent to an unverified identifier
After successful authentication, a call is made to an RSA Notify service with the provided RSA device information.
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Body |
body |
Body of authentication with session and OTP request |
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
Session has been updated |
No Content |
400 |
Response details:
|
|
401 |
Response details:
|
|
404 |
Response details:
|
No Content |
422 |
Validation error; some of the provided attributes did not pass the validation rules. Response details:
|
Tags
-
authn
Security
Type | Name |
---|---|
oauth2 |
|
oauth2 |
|
oauth2 |
|
apiKey |
POST /authn/password
Description
Authenticates a user identified by the provided session based on the password
supplied.
If device print is supplied in the request body and authentication succeeds, the device will be recognized and deviceToken will be issued.
If a deviceToken is provided but is invalid, an Authentication.InvalidDeviceToken
error will be returned.
Upon success, the token will be refreshed, and its properties will be updated.
If the password is incorrect for the session user, an Authentication.InvalidCredentials
will be returned.
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Header |
deviceToken |
Token issued by Devices Service after successfull device recognition |
string |
Body |
body |
Body of authentication with session and password request |
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
Session has been updated |
No Content |
400 |
Response details:
|
|
401 |
Response details:
|
|
404 |
Response details:
|
No Content |
422 |
Validation error; some of the provided attributes did not pass the validation rules. Response details:
|
Tags
-
authn
Security
Type | Name |
---|---|
oauth2 |
|
oauth2 |
|
oauth2 |
|
apiKey |
POST /authn/totp
Description
Authenticates a user identified by the provided session based on the time-based one-time password ("TOTP") supplied.
Upon success, the token will be refreshed, and its properties will be updated.
If device print is supplied in the request body and authentication succeeds, the device will be recognized and deviceToken will be issued.
Note that this API returns an Authentication.InvalidCredentials
error in either of the following cases:
- The user’s authSecret
is not yet accepted
- The TOTP token was incorrect
- Provided deviceToken doesn’t match supplied in the request body device print
If a deviceToken is provided but is invalid, an Authentication.InvalidDeviceToken
error will be returned.
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Header |
deviceToken |
Token issued by Devices Service after successfull device recognition |
string |
Body |
body |
Body of authentication with session and TOTP request |
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
Session has been updated |
No Content |
400 |
Response details:
|
|
401 |
Response details:
|
|
404 |
Response details:
|
No Content |
422 |
Validation error; some of the provided attributes did not pass the validation rules. Response details:
|
|
423 |
Response details:
|
Tags
-
authn
Security
Type | Name |
---|---|
oauth2 |
|
oauth2 |
|
oauth2 |
|
apiKey |
POST /sla/authn/identifierpassword
Description
Authenticates the identified user based on the password
supplied.
If authentication succeeds, a new session is created; the session token is returned in the response.
If device print is supplied in the request body and authentication succeeds, the device will be recognized and deviceToken will be issued.
Note that this API returns an Authentication.InvalidCredentials
error in either of the following cases:
- No user was found by the supplied identifier
- The password was incorrect for the identified user
- Provided deviceToken doesn’t match supplied in the request body device print
If a session token is provided but is invalid, an Authentication.Unauthenticated
error will be returned.
If a deviceToken is provided but is invalid, an Authentication.InvalidDeviceToken
error will be returned.
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Header |
deviceToken |
Token issued by Devices Service after successfull device recognition |
string |
Body |
body |
Body of authentication with identifier and password request |
Responses
HTTP Code | Description | Schema |
---|---|---|
201 |
Session was created |
|
400 |
Response details:
|
|
401 |
Response details:
|
|
422 |
Validation error; some of the provided attributes did not pass the validation rules. Response details:
|
|
423 |
Response details:
|
Tags
-
authn
Security
Type | Name |
---|---|
apiKey |
Example HTTP response
Response 201
{
"token" : "1323123-3424324324-4234324324-123123432",
"deviceToken" : "e09b98e2-c021-41d5-b4a0-4c22f8065817"
}
POST /sla/authn/identifiertotp
Description
Authenticates the identified user based on the time-based one-time password ("TOTP") supplied.
If authentication succeeds, a new session is created; the session token is returned in the response.
If device print is supplied in the request body and authentication succeeds, the device will be recognized and deviceToken will be issued.
Note that this API returns an Authentication.InvalidCredentials
error in any of the following cases:
- No user was found by the supplied identifier
- The user’s authSecret
is not yet accepted
- The TOTP token was incorrect
- If a deviceToken is provided but is invalid, an Authentication.InvalidDeviceToken
error will be returned.
If a session token is provided but is invalid, an Authentication.Unauthenticated
error will be returned.
If a deviceToken is provided but is invalid, an Authentication.InvalidDeviceToken
error will be returned.
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Header |
deviceToken |
Token issued by Devices Service after successfull device recognition |
string |
Body |
body |
Body of authentication with identifier and TOTP request |
Responses
HTTP Code | Description | Schema |
---|---|---|
201 |
Session was created |
|
400 |
Response details:
|
|
401 |
Response details:
|
|
422 |
Validation error; some of the provided attributes did not pass the validation rules. Response details:
|
Tags
-
authn
Security
Type | Name |
---|---|
apiKey |
Example HTTP response
Response 201
{
"token" : "1323123-3424324324-4234324324-123123432",
"deviceToken" : "e09b98e2-c021-41d5-b4a0-4c22f8065817"
}
POST /sla/authn/kba
Description
Authenticates a user identified by the provided session based on the (case-insensitive) knowledge-based answers supplied.
Upon success, the token will be refreshed and its properties will be updated.
If the provided token is invalid, or the user provides incorrect responses to some questions, an Authentication.Unauthenticated
error will be thrown.
If the user has not previously stored responses to KBA questions, a User.KbaNotAccepted
error will be thrown.
If the central KBA config allows a user to respond to more more questions than the minimum required, and
no challenge questions have been previously set for the user, a User.KbaNotPending
error will be thrown.
If the user responds to more questions than the required questions in the current challenge set, a
User.ValidationError
will be thrown with appropriate details about which questions were extraneous.
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Body |
body |
User login data |
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
Session has been updated |
No Content |
400 |
Response details:
|
|
401 |
Login unsuccessful The identifier / KBA responses were not valid. Detailed reason is returned in the response. Response detail
|
|
404 |
Response details:
|
|
422 |
Validation error; some of the provided attributes did not pass the validation rules. Response details:
|
Tags
-
authn
Security
Type | Name |
---|---|
oauth2 |
|
oauth2 |
|
oauth2 |
|
apiKey |
POST /sla/authn/otp
Description
Authenticates a user identified by the provided session based on the one-time password ("OTP") supplied.
Upon success, the token will be refreshed, and its properties will be updated.
OTPs are only acceptable for authentication if they were sent to an identifier address (identifier email or mobile).
Note that this API returns an Authentication.InvalidCredentials
error in any of the following cases:
- No OTP was stored for the user
- The OTP supplied in the request was incorrect
- The authentication was attempted using an OTP that had been sent to an unverified identifier
After successful authentication, a call is made to an RSA Notify service with the provided RSA device information.
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Body |
body |
Body of authentication with session and OTP request |
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
Session has been updated |
No Content |
400 |
Response details:
|
|
401 |
Response details:
|
|
404 |
Response details:
|
No Content |
422 |
Validation error; some of the provided attributes did not pass the validation rules. Response details:
|
Tags
-
authn
Security
Type | Name |
---|---|
oauth2 |
|
oauth2 |
|
oauth2 |
|
apiKey |
POST /sla/authn/password
Description
Authenticates a user identified by the provided session based on the password
supplied.
If device print is supplied in the request body and authentication succeeds, the device will be recognized and deviceToken will be issued.
If a deviceToken is provided but is invalid, an Authentication.InvalidDeviceToken
error will be returned.
Upon success, the token will be refreshed, and its properties will be updated.
If the password is incorrect for the session user, an Authentication.InvalidCredentials
will be returned.
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Header |
deviceToken |
Token issued by Devices Service after successfull device recognition |
string |
Body |
body |
Body of authentication with session and password request |
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
Session has been updated |
No Content |
400 |
Response details:
|
|
401 |
Response details:
|
|
404 |
Response details:
|
No Content |
422 |
Validation error; some of the provided attributes did not pass the validation rules. Response details:
|
Tags
-
authn
Security
Type | Name |
---|---|
oauth2 |
|
oauth2 |
|
oauth2 |
|
apiKey |
POST /sla/authn/totp
Description
Authenticates a user identified by the provided session based on the time-based one-time password ("TOTP") supplied.
Upon success, the token will be refreshed, and its properties will be updated.
If device print is supplied in the request body and authentication succeeds, the device will be recognized and deviceToken will be issued.
Note that this API returns an Authentication.InvalidCredentials
error in either of the following cases:
- The user’s authSecret
is not yet accepted
- The TOTP token was incorrect
- Provided deviceToken doesn’t match supplied in the request body device print
If a deviceToken is provided but is invalid, an Authentication.InvalidDeviceToken
error will be returned.
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Header |
deviceToken |
Token issued by Devices Service after successfull device recognition |
string |
Body |
body |
Body of authentication with session and TOTP request |
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
Session has been updated |
No Content |
400 |
Response details:
|
|
401 |
Response details:
|
|
404 |
Response details:
|
No Content |
422 |
Validation error; some of the provided attributes did not pass the validation rules. Response details:
|
|
423 |
Response details:
|
Tags
-
authn
Security
Type | Name |
---|---|
oauth2 |
|
oauth2 |
|
oauth2 |
|
apiKey |
Definitions
AliveStatus
Name | Description | Schema |
---|---|---|
message |
Description of service status if available |
string |
Error
Name | Description | Schema |
---|---|---|
code |
Unique internal error code |
string |
details |
Optional. Varies depending on the specific use case - details are determined by the particular API call. |
object |
message |
Description of the error code |
string |
IdentifierPasswordAuthenticationRequest
Name | Description | Schema |
---|---|---|
device |
||
identifier |
User unique identifier |
string |
password |
User password |
string |
device
Name | Schema |
---|---|
name |
string |
properties |
|
type |
enum (android, windows, desktop, ios, browser) |
properties
Name | Description | Schema |
---|---|---|
details |
Detailed device information |
object |
platform |
platform
Name | Schema |
---|---|
name |
string |
version |
string |
IdentifierTotpAuthenticationRequest
Name | Description | Schema |
---|---|---|
device |
||
identifier |
User unique identifier |
string |
totpToken |
TOTP token value |
string |
device
Name | Schema |
---|---|
name |
string |
properties |
|
type |
enum (android, windows, desktop, ios, browser) |
properties
Name | Description | Schema |
---|---|---|
details |
Detailed device information |
object |
platform |
platform
Name | Schema |
---|---|
name |
string |
version |
string |
KbaAuthenticationRequest
Name | Description | Schema |
---|---|---|
kbaResponseSet |
KBA response questions and answers |
< kbaResponseSet > array |
kbaResponseSet
Name | Description | Schema |
---|---|---|
questionIdentifier |
Unique identifier for a KBA question |
string |
response |
User’s plaintext answer to a KBA question |
string |
OtpAuthenticationRequest
Name | Description | Schema |
---|---|---|
otp |
OTP value |
string |
PasswordAuthenticationRequest
Name | Description | Schema |
---|---|---|
password |
User password |
string |
SessionCreated
Name | Schema |
---|---|
deviceToken |
string |
token |
string |
TotpAuthenticationRequest
Name | Description | Schema |
---|---|---|
totpToken |
TOTP token value |
string |
ValidationError
Name | Description | Schema |
---|---|---|
code |
Unique internal error code |
string |
details |
||
message |
Description of the error code |
string |
details
Name | Schema |
---|---|
fields |
< fields > array |
fields
Name | Description | Schema |
---|---|---|
code |
Unique internal error code |
string |
message |
Description of the error code |
string |
name |
Name of the field |
string |
VerifyIdentifierPasswordCredentialsRequest
Name | Description | Schema |
---|---|---|
identifier |
User identifier |
string |
password |
User password |
string |
Security
SsoToken
Type : apiKey
Name : token
In : HEADER
oauth2_implicit
Type : oauth2
Flow : implicit
Token URL : https://cloudentity.dev.cloudentity.com/oauth/authorize
oauth2_authorizationCode
Type : oauth2
Flow : accessCode
Token URL : https://cloudentity.dev.cloudentity.com/oauth/authorize
Token URL : https://cloudentity.dev.cloudentity.com/oauth/token
oauth2_password
Type : oauth2
Flow : password
Token URL : https://cloudentity.dev.cloudentity.com/oauth/token