Create service app with custom client_id

Hi! Similar to what I’m able to do using the Okta Terraform provider, is it possible to create a new service app with a custom client_id using the /oauth2/v1/clients endpoint? I just created a simple python script to achieve this but am getting the following error:

“error”:“invalid_client_metadata”,“error_description”:“‘client_id’ is generated by the server and cannot be included in the request.”

I am working through a state drift issue in terraform and need a way to quickly create a service app with a custom client_id in several different environments. Open to any other workaround out there.

Thanks!

The only way to create a client with a custom client_id is using the /Apps endpoint, not the Dynamic Client Registration endpoint (/oauth2/v1/clients), as described here: Create an OAuth/OIDC Application with a Custom client_id and client_secret | Okta Help Center

1 Like

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.