Delete CAS Secret For User
POST /object/user-cas/secret/{uid}/deactivate
Deletes CAS secret for a specified user identifier.
uid | Valid user identifier to delete the key from |
Required Roles
Requires one of the following roles:
SYSTEM_ADMIN
NAMESPACE_ADMIN
Request Payload
<user_cas_secret_param>
<namespace></namespace>
<secret></secret>
</user_cas_secret_param>
{
"namespace": "",
"secret": ""
}
All parameters are required unless otherwise stated.
Field |
Description |
Type |
Notes |
user_cas_secret_param |
|
|
|
namespace |
Namespace identifier to associate with the CAS secret |
String |
|
secret |
Secret for the user |
String |
|
Response Body
Result with status of the operation
Examples
Request
POST https://192.168.0.0:4443/object/user-cas/secret/wuser1@sanity.local/deactivate HTTP/1.1
Content-Type: application/xml
X-SDS-AUTH-TOKEN: <AUTH_TOKEN>
<user_cas_secret_param>
<namespace>s3</namespace>
<secret>secret</secret>
</user_cas_secret_param>
Response
HTTP/1.1 200 OK
Content-Type: application/xml
Request
POST https://192.168.0.0:4443/object/user-cas/secret/wuser1@sanity.local/deactivate.json HTTP/1.1
Content-Type: application/json
X-SDS-AUTH-TOKEN: <AUTH_TOKEN>
{
"user_cas_secret_param": {
"namespace": "s3",
"secret": "secret"
}
}
Response
HTTP/1.1 200 OK
Content-Type: application/json
Request
curl -H $token -H "Content-Type: application/xml" -X POST https://$nodeIp:4443/object/user-cas/secret/wuser1@sanity.local/deactivate
Response
HTTP/1.1 200 OK
Content-Type: application/xml