Modified since last release
Get CAS Secret For User
GET /object/user-cas/secret/{uid}
Gets CAS secret for the specified user.
uid | Valid user identifier to get the key from |
Required Roles
Requires one of the following roles:
SYSTEM_ADMIN
NAMESPACE_ADMIN
Prerequisites
The following conditions must be met in order to call this operation.
Response Body
Representation of CAS secret for the user
Field |
Description |
Type |
Notes |
user_cas_secret |
|
|
|
cas_secret |
CAS secret |
String |
|
Examples
Request
GET https://192.168.0.0:4443/object/user-cas/secret/wuser1@sanity.local HTTP/1.1
Content-Type: application/xml
X-SDS-AUTH-TOKEN: <AUTH_TOKEN>
Response
HTTP/1.1 200 OK
Content-Type: application/xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<user_cas_secret>
<cas_secret>secret</cas_secret>
</user_cas_secret>
Request
GET https://192.168.0.0:4443/object/user-cas/secret/wuser1@sanity.local.json HTTP/1.1
Content-Type: application/json
X-SDS-AUTH-TOKEN: <AUTH_TOKEN>
Response
HTTP/1.1 200 OK
Content-Type: application/json
{
"user_cas_secret": { "cas_secret": "secret" }
}
Request
curl -H $token -H "Content-Type: application/xml" -X GET https://$nodeIp:4443/object/user-cas/secret/wuser1@sanity.local
Response
HTTP/1.1 200 OK
Content-Type: application/xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<user_cas_secret>
<cas_secret>secret</cas_secret>
</user_cas_secret>