4
votes

I am trying to configure the ROPC flow in Azure Active Directory B2C using a custom policy mentioned in the below URL.

https://docs.microsoft.com/en-us/azure/active-directory-b2c/ropc-custom

But I am getting the below error while testing the ROPC policy. { "error": "invalid_request", "error_description": "AADB2C90083: The request is missing required parameter: grant_type.\r\nCorrelation ID: b4153dfe-4296-4b68-850f-ee30ac4d86b0\r\nTimestamp: 2019-08-02 11:53:23Z\r\n" }

2
Are you validating ROPC scenario with Native App?Ramakrishna
Try adding grant_type = passwordMA0608
I have added the grant_type = password but not working.Koushik mondal
I am having the same problem. Have you been able to resolve this? If yes, what was the fix?Milad Ghafoori
Same bug for me, I have to try again 2 or 3 times and it worksjug

2 Answers

0
votes
https://<your-tenant-name>.b2clogin.com/<your-tenant-name>.onmicrosoft.com/oauth2/v2.0/token?p=B2C_1A_<POLICY_NAME>&username=xxxxx&password=xxxxx&grant_type=password&scope=openid <NativeClient_App_ID> offline_access&client_id=<NativeClient_App_ID>&response_type=token id_token

In the above url add your tenant name, ROPC Signin Policy Name, username & Password and your native client ID.

Now try to send the request and check.

0
votes

I got the same error then I realised it should be GET request and I was sending POST. Make sure you are sending correct request type.