Add Delete Privileges API to HLRC (#35454)

This commit adds the Delete Privileges API to the high level REST
client.

Related to #29827
This commit is contained in:
Tanguy Leroux 2018-11-14 14:04:30 +01:00 committed by GitHub
parent e7b7d52a6a
commit 5b7446bb5f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 352 additions and 9 deletions

View file

@ -0,0 +1,37 @@
--
:api: delete-privileges
:request: DeletePrivilegesRequest
:response: DeletePrivilegesResponse
--
[id="{upid}-{api}"]
=== Delete Privileges API
This API can be used to delete application privileges.
[id="{upid}-{api}-request"]
==== Delete Application Privileges Request
A +{request}+ has two arguments
["source","java",subs="attributes,callouts,macros"]
--------------------------------------------------
include-tagged::{doc-tests-file}[{api}-request]
--------------------------------------------------
<1> the name of application
<2> the name(s) of the privileges to delete that belong to the given application
include::../execution.asciidoc[]
[id="{upid}-{api}-response"]
==== Delete Application Privileges Response
The returned +{response}+ allows to retrieve information about the executed
operation as follows:
["source","java",subs="attributes,callouts,macros"]
--------------------------------------------------
include-tagged::{doc-tests-file}[{api}-response]
--------------------------------------------------
<1> the name of the application
<2> whether the given privilege was found and deleted

View file

@ -353,12 +353,14 @@ The Java High Level REST Client supports the following Security APIs:
* <<java-rest-high-security-delete-role-mapping>>
* <<java-rest-high-security-create-token>>
* <<{upid}-invalidate-token>>
* <<{upid}-delete-privileges>>
include::security/put-user.asciidoc[]
include::security/enable-user.asciidoc[]
include::security/disable-user.asciidoc[]
include::security/change-password.asciidoc[]
include::security/delete-role.asciidoc[]
include::security/delete-privileges.asciidoc[]
include::security/clear-roles-cache.asciidoc[]
include::security/clear-realm-cache.asciidoc[]
include::security/authenticate.asciidoc[]