<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-M74D8PB" height="0" width="0" style="display:none;visibility:hidden">
Loading
Skip to NavigationSkip to Main Content
0D54z00007RUw3iCADOkta Classic EngineAPI Access ManagementAnswered2022-06-22T18:00:30.000Z2022-02-10T22:53:41.000Z2022-02-11T15:52:48.000Z

JayV.21124 (Customer) asked a question.

Creating client applications in Okta (Dynamic Client Registration API)

I am trying to use the Dynamic Client Registration API to register some clients. For development/testing I am using SSWS API token that I generated via the OKTA admin portal for our organization.

 

I am using the sample postman collections that you have published in the API specification for Dynamic Client Registration API. I am able to create a new client via POST API, but if I try to create another client (different client_name) after that I am receiving an error

 

{

    "error": "access_denied",

    "error_description": "The resource owner or authorization server denied the request."

}

 

If I delete the previously created client, and then retry creating new client again, it works fine.

 

Is there a limit to how many clients can be created through this API? Is this rate limited somewhere?

 


  • Hello @JayV.21124 (Customer)​ 

    I hope you are having a great day

     

    Thank you for posting, the link below shows the rate limit and more details about the Dynamic client registration API. 

     

    https://developer.okta.com/docs/reference/rate-limits/

     

    If you need further assistance you can also feel free to post this question on our Okta Developer Forums: https://devforum.okta.com, this is a place for the Okta developer community to interact

     

    Have a great day ahead

    Okta Inc

     

    Expand Post
  • JayV.21124 (Customer)

    @User16308869954358539580 (Okta)​ Thanks for quick feedback on this. I did look into this page, however I am not seeing any particular limit that would restrict creation of clients. It seems like I am able to create only one OAuth client at time (please see request body sample below).

     

    Ex, this works fine when I call Create Client endpoint defined here: https://developer.okta.com/docs/reference/api/oauth-clients/#register-new-client

     

        {

            "client_name": "Test client 1",

            "response_types": [

                "token"

            ],

            "grant_types": [

                "client_credentials"

            ],

            "token_endpoint_auth_method": "client_secret_basic",

            "application_type": "service"

        }

     

    Then if I change client_name and try to create another client:

    Ex.

        {

            "client_name": "Test client 2",

            "response_types": [

                "token"

            ],

            "grant_types": [

                "client_credentials"

            ],

            "token_endpoint_auth_method": "client_secret_basic",

            "application_type": "service"

        }

    I receive this error

    {

        "error": "access_denied",

        "error_description": "The resource owner or authorization server denied the request."

    }

     

    Is there a reason I cannot create more than one OAuth client of this type (please note I am trying to create service client - client_credentials and response type is "token"). If I delete previously created client (client_name = 'Test client 1' in this example), the second client creation works.

     

    So my question is why I am enable to create multiple clients through the API?

    Expand Post
This question is closed.
Loading
Creating client applications in Okta (Dynamic Client Registration API)
Okta Support Agent (Beta)

Terms of Service

Hello! I'm the Okta Support Agent (Beta), your go-to resource for questions about Okta products. Please remember for your security and privacy, do not share any Personally Identifiable Information (PII) such as passwords, IP addresses, or other details with me.

Okta Privacy Policy and Terms of Service apply