The Authentication Method "OAuth2 Client Credentials Grant" in a SCIM app does not work

Spasova, Monika 40 Reputation points
2024-12-03T13:48:10.8666667+00:00

We have created a SCIM app in azure that will be used to provision users from Entra to our SCIM compliant service. We would like to support the Authentication method: Oauth2 Client Credentials Grant. When we configure the SCIM app to use it we see the error on the right side of the screenshot:

You appear to have entered invalid credentials. Please confirm you are using the correct information for an administrative account.

Error code: SystemForCrossDomainIdentityManagementCredentialValidationUnavailable

Details: We received this unexpected response from your application:.........
AzureClientCredentialsSupportImage

When we request the same token endpoint to get access token in postman, using absolutely the same client id and secret, we receive a token and we are successfully authorize to our SCIM compliant service and we execute successful requests.AzureSupportCaseImage2

Why does it happen in Azure?

Microsoft Security Microsoft Entra Microsoft Entra ID
{count} votes

2 answers

Sort by: Most helpful
  1. Givary-MSFT 35,621 Reputation points Microsoft Employee Moderator
    2024-12-04T04:27:39.9566667+00:00

    @Spasova, Monika Thank you for reaching out to us, just wanted to check does your app is a gallery app ? Because in our documentation - https://learn.microsoft.com/en-us/entra/identity/app-provisioning/use-scim-to-provision-users-and-groups#how-to-setup-oauth-code-grant-flow:~:text=non%2Dgallery%20apps.-,OAuth%20authorization%20code%20grant,-Access%20tokens%20have

    OAuth authorization code grant - Supported for gallery apps, but not non-gallery apps. However, you can provide an access token in the UI as the secret token for short term testing purposes. Support for OAuth code grant on non-gallery is in our backlog, in addition to support for configurable auth / token URLs on the gallery app.

    Let me know if this helps to answer your query, else feel free to post back, would be happy to check with my team or research further on this and revert back.


  2. Danny Zollner 10,801 Reputation points Microsoft Employee Moderator
    2024-12-05T23:22:38.6366667+00:00

    I believe that you are enabling the OAuth UI in the custom non-gallery SCIM application via a URL feature flag that is documented on an integration for a specific gallery application. If that is correct, then the cause of your issues is that this feature is not intended to be used with the non-gallery SCIM application. This feature not being supported for use with the non-gallery SCIM application means that the behavior you are seeing is the expected one - failure.

    I am only aware of this being documented for use on one specific gallery application's tutorial article. If this feature flag is documented elsewhere on Microsoft's documentation platform, please let me know where and I will promptly remove it.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.