How can I create a Azure Web Application to authenticate User and acquire its Access Token?

ぃ、小莉子 提交于 2021-02-11 13:18:18

问题


I want to create an Azure Web Application that can authenticate an external/internal (from any Organization) user upon opening the Web Application link through Azure AD Credentials and acquire its Access token in return.

I want to use that Access Token to programmatically create an application registration in User's tenant.


回答1:


First, you need to register an application and set it as a multi-tenant application, then use the auth code flow to authenticate the user and obtain an access token.

Next, you need to use the access token to call the MS graph api to create an application, because you are using the auth code flow to obtain the token, so you need to grant delegation permissions to the application.

see: sample.



来源:https://stackoverflow.com/questions/65088908/how-can-i-create-a-azure-web-application-to-authenticate-user-and-acquire-its-ac

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!