I built an app in my Azure ad b2c tenant and configured it as shown, but why can't I request an access token in postman?
Here are the links to the two documents I follow:
I built an app in my Azure ad b2c tenant and configured it as shown, but why can't I request an access token in postman?
Here are the links to the two documents I follow:
One thing I noticed is that the parameters for the token request should be in the body as form parameters, like this:
You should use the parameters you've defined here though, this screenshot shows a test request for the ROPC flow so the parameters in the picture are not valid for your use case.
So instead of entering the parameters in Params, enter them in Body tab after selecting x-www-form-urlencoded as the type.
Please input the params in "Body" tab of your postman but not "Params" tab. Shown as below screenshot.
In order to get token you need to pass grant_type in request body and value should be password.
For example
Method Post: https://login.microsoftonline.com/YourTenantID/oauth2/v2.0/token
And in body you need to ppass client_id : Your app client ID scope: user.read%20openid%20profile%20offline_access username: Your username password: your password grant_type: password client_secret: you app registration secret
I tried many times to put into body with JSON format or in parameter or put into Parameters, but I did not work. And it works for me when I put into Body with type is x-www-form-urlendcoded. [Image]: https://i.sstatic.net/tguZc.png
© 2022 - 2024 — McMap. All rights reserved.