Okta is configured as the OpenID Connect Dynamic Client Registration in Anypoint Platform for Client Management.
When creating a client in Exchange without "Authorization Code Grant" selected, it fails with error: "Client: Invalid OpenID Connect client creation request. OpenID provider responded with status code 400":
or
Anypoint Platform sends the following call to Okta, in case of only "implicit" is selected:
curl -X POST \
<CLIENT_REGISTRATION_URL> \
-H 'Authorization: SSWS <TOKEN>' \
-H 'Content-Type: application/json' \
-d '{
"client_name": "OKTA_CLIENT_WITHOUT_AUTHCODE",
"redirect_uris": [
"http://localhost"
],
"response_types": [
"token",
"id_token"
],
"grant_types": [
"implicit"
],
"token_endpoint_auth_method": "client_secret_basic"
}'
and gets the response:
{"error":"invalid_client_metadata","error_description":"'grant_types' must contain 'authorization_code' when 'application_type' is 'web'."}
Okta's implementation of OpenID Connect Dynamic Client Registration deviates from Anypoint's in small but noticeable ways. In particular, clients with only the implicit grant type cannot be created with a by-the-letter implementation of the specification.
In addition to "Implicit Grant" or "Resource Owner Grant" or chosen grant type, please also select "Authorization Code Grant" as a grant type when creating a client in Okta with OIDC.
Refer to the MuleSoft documentation to understand the Supported Grant Types when Configuring OpenID Connect Client Management.
Additionally, consider not using the implicit grant type, as it has a very narrow set of useful applications as per the OKTA documentation.
When using OpenID Connect Dynamic Client Registration, one of the parameters that is specified by the standard is application_type. Two possible values are defined: Web, and native. Please see OpenID spec documentation.
application_type OPTIONAL. Kind of the application. The default, if omitted, is web. The defined values are native or web.
For creating clients without the authorization_code grant type, Okta requires non-standard application types:
Please see Okta documentation to Register a Client Application for Dynamic Client Registration.
This article involves products and technologies which do not form part of the MuleSoft product set. Technical assistance for such products is limited to this article.
001123173

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.