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 /session
Description
Gets user’s current session details
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
Current user session details |
|
400 |
Response details:
|
|
401 |
Response details:
|
Tags
-
session
Security
Type | Name |
---|---|
apiKey |
Example HTTP response
Response 200
{
"authLevel" : 30,
"customer" : "default",
"customerAlias" : "Default Customer",
"entitlementGroups" : [ "USER_GROUP" ],
"entitlements" : [ "CAN_ACCESS_PROFILE", "CAN_EDIT_PROFILE" ],
"firstName" : "Joe",
"googleAuthSecretAccepted" : "true",
"lastName" : "Doe",
"locale" : "en-US",
"mfaMethod" : "GOOGLE_AUTHENTICATION",
"uid" : "joedoe",
"uuid" : "123432-43242344-12343245-432432432",
"deviceUuid" : "e09b98e2-c021-41d5-b4a0-4c22f8065817",
"authenticationIdentifier" : "joedoe"
}
DELETE /session
Description
User invalidates his current session resulting in a logout.
Returns success if the session is already invalid.
Responses
HTTP Code | Description | Schema |
---|---|---|
204 |
Session invalidated successfully. |
No Content |
400 |
Response details:
|
Tags
-
session
Security
Type | Name |
---|---|
apiKey |
GET /session/authentication
Description
Retrieves session attributes used in an authentication flow.
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
Authentication attributes of a session |
|
400 |
Response details:
|
|
401 |
Response details:
|
Tags
-
session
Security
Type | Name |
---|---|
apiKey |
GET /session/verify
Description
Verifies if the current session is valid. Results in an extension of the session.
Responses
HTTP Code | Description | Schema | |
---|---|---|---|
200 |
Session verified succesfully. Session gets extended automatically when this call returns |
No Content |
|
400 |
Response details:
|
||
401 |
Session is invalid Session invalidity may be caused by several factors: * The session associated with the provided token expired * The session associated with the provided token never existed - the token is fake For security reasons, the real reason for session invalidity is not returned. Response details
|
Tags
-
session
Security
Type | Name |
---|---|
apiKey |
GET /sla/hmac/session
Description
Gets user’s current session details using HMAC authentication.
The ADMIN_GET_SESSION_VIA_HMAC entitlement is required.
This API uses the same request authorization headers as POST /apiKey/entitlement/validate
(Validate Entitlements using API Key).
See documentation for that API for details about authorization header inputs.
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Header |
token |
SSO token of the current user |
string |
Header |
x-orchis-authorization |
string |
|
Header |
x-orchis-date |
string |
|
Header |
x-orchis-request |
string |
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
Current user session details |
|
400 |
Response details:
|
|
401 |
Response details:
|
|
403 |
Response details:
|
Tags
-
session
Example HTTP response
Response 200
{
"authLevel" : 30,
"customer" : "default",
"customerAlias" : "Default Customer",
"entitlementGroups" : [ "USER_GROUP" ],
"entitlements" : [ "CAN_ACCESS_PROFILE", "CAN_EDIT_PROFILE" ],
"firstName" : "Joe",
"googleAuthSecretAccepted" : "true",
"lastName" : "Doe",
"locale" : "en-US",
"mfaMethod" : "GOOGLE_AUTHENTICATION",
"uid" : "joedoe",
"uuid" : "123432-43242344-12343245-432432432",
"deviceUuid" : "e09b98e2-c021-41d5-b4a0-4c22f8065817",
"authenticationIdentifier" : "joedoe"
}
GET /sla/session
Description
Gets user’s current session details
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
Current user session details |
|
400 |
Response details:
|
|
401 |
Response details:
|
Tags
-
session
Security
Type | Name |
---|---|
apiKey |
Example HTTP response
Response 200
{
"authLevel" : 30,
"customer" : "default",
"customerAlias" : "Default Customer",
"entitlementGroups" : [ "USER_GROUP" ],
"entitlements" : [ "CAN_ACCESS_PROFILE", "CAN_EDIT_PROFILE" ],
"firstName" : "Joe",
"googleAuthSecretAccepted" : "true",
"lastName" : "Doe",
"locale" : "en-US",
"mfaMethod" : "GOOGLE_AUTHENTICATION",
"uid" : "joedoe",
"uuid" : "123432-43242344-12343245-432432432",
"deviceUuid" : "e09b98e2-c021-41d5-b4a0-4c22f8065817",
"authenticationIdentifier" : "joedoe"
}
DELETE /sla/session
Description
User invalidates his current session resulting in a logout.
Returns success if the session is already invalid.
Responses
HTTP Code | Description | Schema |
---|---|---|
204 |
Session invalidated successfully. |
No Content |
400 |
Response details:
|
Tags
-
session
Security
Type | Name |
---|---|
apiKey |
GET /sla/session/authentication
Description
Retrieves session attributes used in an authentication flow.
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
Authentication attributes of a session |
|
400 |
Response details:
|
|
401 |
Response details:
|
Tags
-
session
Security
Type | Name |
---|---|
apiKey |
GET /sla/session/verify
Description
Verifies if the current session is valid. Results in an extension of the session.
Responses
HTTP Code | Description | Schema | |
---|---|---|---|
200 |
Session verified succesfully. Session gets extended automatically when this call returns |
No Content |
|
400 |
Response details:
|
||
401 |
Session is invalid Session invalidity may be caused by several factors: * The session associated with the provided token expired * The session associated with the provided token never existed - the token is fake For security reasons, the real reason for session invalidity is not returned. Response details
|
Tags
-
session
Security
Type | Name |
---|---|
apiKey |
DELETE /sla/user/device/{identifier}/sessions
Description
Removes sessions which belongs to particular device and user invoking that action. Only current session of user who is invalidating device sessions cannot be removed.
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Path |
identifier |
Unique identifier of a device. |
string |
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
Session invalidated successfully. |
No Content |
400 |
Response details:
|
|
401 |
Response details:
|
|
403 |
Response details:
|
Tags
-
session
Security
Type | Name |
---|---|
apiKey |
DELETE /user/device/{identifier}/sessions
Description
Removes sessions which belongs to particular device and user invoking that action. Only current session of user who is invalidating device sessions cannot be removed.
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Path |
identifier |
Unique identifier of a device. |
string |
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
Session invalidated successfully. |
No Content |
400 |
Response details:
|
|
401 |
Response details:
|
|
403 |
Response details:
|
Tags
-
session
Security
Type | Name |
---|---|
apiKey |
Definitions
AliveStatus
Name | Description | Schema |
---|---|---|
message |
Description of service status if available |
string |
AuthenticationSession
Name | Description | Schema |
---|---|---|
authenticationIdentifier |
Identifier which was originally used in the creation of this session |
string |
googleAuthSecretAccepted |
Whether this user has accepted his/her Google authSecret |
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 |
IotDeviceValidationError
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. |
|
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 |
UUID of invalid IOT devices |
string |
Session
Name | Description | Schema |
---|---|---|
authLevel |
Current authentication level of the user |
integer (int32) |
authenticationIdentifier |
Identifier which was originally used in the creation of this session |
string |
customer |
CID of the customer to which this user is assigned |
string |
customerAlias |
Alias of the customer to which this user is assigned |
string |
defaultCustomer |
CID of the customer to which this user is assigned. Does not change even if session customer changes. |
string |
defaultCustomerStatus |
Activation status of the customer to which this user is assigned. Does not change even if session customer changes. |
string |
deviceUuid |
UUID of the device |
string |
entitlementGroups |
List of entitlement groups the user has within the current session |
< string > array |
entitlements |
List of entitlements the user has within the current session |
< string > array |
firstName |
User’s first name i.e. Joe |
string |
googleAuthSecretAccepted |
Whether this user has accepted his/her Google authSecret |
string |
lastName |
User’s last name i.e. Doe |
string |
locale |
Locale of the user |
string |
mfaMethod |
User’s MFA method |
string |
uid |
Unique identifier of the user - i.e. login |
string |
uuid |
UUID of the user |
string |
Security
SsoToken
Type : apiKey
Name : token
In : HEADER