To use the One Identity Manager REST API, you first have to authenticate against the application server.
HTTP method |
URI |
Body |
---|---|---|
Post |
<BaseURL>/auth/apphost |
Property authString containing an authentication string. For more information, see Initial data for authentication modules. |
Body schema:
{"authString": String}
Response schema:
{
"claims": {
"id": String,
"useruid": String,
"module": String
},
"passwordBased": Boolean,
"moduleDisplay": String,
"sessionId": String,
"userName": String,
"responseStatus": {}
}
Example:
https://<Hostname>/AppServer/auth/apphost
Body:
{"authString":"Module=DialogUser;User=<user name>;Password="}
Response:
{
"claims": {
"id": "<user name>",
"useruid": "QBM-A60F9E5189134AFFB6711DFCBC3F260E",
"module": "DialogUser"
},
"passwordBased": true,
"moduleDisplay": "System user",
"sessionId": "nV8R3iw4KfmEiZydA3uy",
"userName": "<user name>",
"responseStatus": {}
}