Azure B2C - custom policy ROPC - Set grant_type, scope and client_id as default

Stephen Li 40 Reputation points
2024-04-29T15:39:16.16+00:00

I could made a ROPC call to get access token with username, password, grant_type, scope and client_id as parameters.

Is it possible to configure default parameters for grant_type, scope, and client_id in XML when making an ROPC call to obtain an access token using just username and password?

Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
19,920 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Shweta Mathur 28,201 Reputation points Microsoft Employee
    2024-05-01T05:20:33.88+00:00

    Hi @Stephen Li ,

    Thanks for reaching out.

    You can refer https://learn.microsoft.com/en-us/azure/active-directory-b2c/add-ropc-policy?tabs=app-reg-ga&pivots=b2c-custom-policy to get the access token by setting default parameters in XML.

    User's image

    Hope this will help.

    Thanks,

    Shweta