Package com.auth0.client.mgmt
Class GrantsEntity
java.lang.Object
com.auth0.client.mgmt.GrantsEntity
Class that provides an implementation of the Grants methods of the Management API as defined in https://auth0.com/docs/api/management/v2#!/Grants/
This class is not thread-safe.
- See Also:
ManagementAPI
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionDelete an existing Grant.Deletes all Grants of a given user.Deprecated.Calling this method will soon stop returning the complete list of grants and instead, limit to the first page of results.list(String userId, GrantsFilter filter)
Request all Grants.
-
Field Details
-
client
protected final okhttp3.OkHttpClient client -
baseUrl
protected final okhttp3.HttpUrl baseUrl -
apiToken
-
-
Method Details
-
list
Request all Grants. A token with scope read:grants is needed See https://auth0.com/docs/api/management/v2#!/Grants/get_grants- Parameters:
userId
- The user id of the grants to retrievefilter
- the filter to use. Can be null.- Returns:
- a Request to execute.
-
list
Deprecated.Calling this method will soon stop returning the complete list of grants and instead, limit to the first page of results. Please uselist(String, GrantsFilter)
instead as it provides pagination support.Request all Grants. A token with scope read:grants is needed See https://auth0.com/docs/api/management/v2#!/Grants/get_grants- Parameters:
userId
- The user id of the grants to retrieve- Returns:
- a Request to execute.
-
delete
Delete an existing Grant. A token with scope delete:grants is needed. See https://auth0.com/docs/api/management/v2#!/Grants/delete_grants_by_id- Parameters:
grantId
- The id of the grant to delete.- Returns:
- a Request to execute.
-
deleteAll
Deletes all Grants of a given user. A token with scope delete:grants is needed. See https://auth0.com/docs/api/management/v2#!/Grants/delete_grants_by_id- Parameters:
userId
- The id of the user whose grants are deleted.- Returns:
- a Request to execute.
-