Scalable OAuth 2.0 clients
Advanced Identity Cloud supports high numbers of OAuth 2.0 clients when you enable scalable clients.
Enable scalable clients for use cases such as:
-
Registering new app installs on a device as separate clients, where you require the ability to have different client settings at an app/device level.
-
Onboarding and managing machine identities in an IoT environment, where each client needs its own OAuth 2.0 client credentials.
-
Managing more than 1000 clients in a realm.
Scalable clients are automatically enabled when the AI agents feature is enabled.
When scalable clients are enabled, you can manage your clients in the Advanced Identity Cloud admin console as usual. Alternatively, if you use the REST API, you can use the /realm-config/agents/OAuth2Client endpoint to filter query results.
|
When enabled, you can’t use the Secret Label Identifier setting if there are more than 1000 clients in a realm. |
Enable scalable clients
If you anticipate a high number of simultaneous client registrations, enable scalable clients. Scalable clients are automatically enabled when the AI agents feature is enabled.
-
Click Create a case.
-
Follow the steps in the case submission wizard by selecting your account and contract and answering questions about your tenant environments.
-
On the Please answer the following questions to help us understand the issue you’re facing page, enter the following details, and then click Next:
Field Value What product family is experiencing the issue?
Select PingOne Advanced Identity Cloud
What specific product is experiencing the issue?
Select Configuration
What version of the product are you using?
Select NA
-
On the Tell us about the issue page, enter the following details, and then click Next:
Field Value Provide a descriptive title for your issue
Enter
Enable scalable OAuth 2.0 clientsDescribe the issue below
Enter a comma-separated list of FQDNs for your sandbox[1], development, UAT[2], staging, and production tenant environments.
-
Click Submit.
-
Ping Identity support confirms when they have enabled scalable OAuth 2.0 clients.
Filter and page client searches
When scalable clients is enabled, you can use this endpoint to query clients and return filtered and paged results.
To filter searches, use the _queryFilter parameter with a JSON pointer to narrow results.
For example, to return all clients with an ID that contains 5256:
$ curl \
--request GET \
--header "Accept-API-Version: resource=2.0" \
--header "Authorization: Bearer <access-token>" \
"https://<tenant-env-fqdn>/am/json/realms/root/realms/alpha/realm-config/agents/OAuth2Client?_queryFilter=_id+co+5256&_pageSize=10"
|
To update a standalone client, access it through the Advanced Identity Cloud admin console or:
|
|
Learn more about filtering query requests in the REST API documentation. |
Querying large numbers of clients returns the first 1000 results. To return all results, specify the _pagedResultsCookie parameter to use a cookie to page through the results:
-
Perform an initial query with
_pageSize=10to retrieve the cookie (pagedResultsCookie).The resource version must be set as
2.0in the header.For example:
$ curl \ --request GET \ --header "Accept-API-Version: resource=2.0" \ --header "Authorization: Bearer <access-token>" \ "https://<tenant-env-fqdn>/am/json/realms/root/realms/alpha/realm-config/agents/OAuth2Client?_queryFilter=true&_pageSize=10" { "result": [ … ], "resultCount": 10, "pagedResultsCookie": "eyAiZGVmY…QiIHB", "totalPagedResultsPolicy": "ESTIMATE", "totalPagedResults": "500000", "remainingPagedResults": -1 }The results include an estimated number of results.
-
Now you can specify the cookie as a parameter to page through the results:
$ curl \ --request GET \ --header "Accept-API-Version: resource=2.0" \ --header "Authorization: Bearer <access-token>" \ "https://<tenant-env-fqdn>/am/json/realms/root/realms/alpha/realm-config/agents/OAuth2Client?_pagedResultsCookie=eyAiZGVmY…QiIHB_queryFilter=true&_pageSize=10" { "result": [ … ], "resultCount": 10, "pagedResultsCookie": "eyAiZGVmY…QiIHB", "totalPagedResultsPolicy": "ESTIMATE", "totalPagedResults": "500000", "remainingPagedResults": -1 } -
Continue paging through results until
pagedResultsCookieis null, indicating the end of the response.