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
CodePudding user response:
Give some name and check the claims that need to be returned.
- Create an app using app registration blade for the user to access,
which then has
user.read
andoffline_access
scopes. - Also copy
application id
or client id to use in scopes .
- 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 asopenid application-id offline_access
,client_id as application-id, response_type) in the body. Highlighted are required ones as stated in document - You can copy the accessToken and decode in