Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

AADB2C90083: The request is missing required parameter: grant_type

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

https://learn.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" }

like image 974
Koushik mondal Avatar asked Nov 06 '22 15:11

Koushik mondal


2 Answers

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.

like image 79
MA0608 Avatar answered Nov 09 '22 05:11

MA0608


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.

like image 35
Amita_S Avatar answered Nov 09 '22 04:11

Amita_S