Home > database >  How can we create a User Flow in Azure-ad-b2c for ROPC authentication and then how can we use it in
How can we create a User Flow in Azure-ad-b2c for ROPC authentication and then how can we use it in

Time:06-24

Actually I have some issues related run a code for get a token from Microsoft graph API. Kindly guide me that how can I create a user flow with ROPC authentication and then how can we run it on postman or in Laravel controller to get a token. I tried it, but got some error. Image is attached for more clarity. Refer the image

CodePudding user response:

You can follow this enter image description here

Give some name and check the claims that need to be returned.

enter image description here

  • Create an app using app registration blade for the user to access, which then has user.read and offline_access scopes.
  • Also copy application id or client id to use in scopes .

enter image description here

  • Then you can go to the created userflow and run user flow to get the endpoints and complete metadata to use.
  • In postman , you need to mention following parameters (username , password,grant_type as password,scope as openid application-id offline_access ,client_id as application-id, response_type) in the body. Highlighted are required ones as stated in document enter image description here - You can copy the accessToken and decode in enter image description here

  • Related