简体   繁体   中英

Get user info of asp.net core web app which authentificated with Azure AD(advanced)

我必须在 azure 门户上使用 azure AD(Advanced) 验证我的 web 应用程序,现在我如何从 /.auth/me 获取 user_id 到 web 应用程序的 UI

In Angular8:

this.http.get<any>
("https://{{NAME_OF_YOUR_AZURE_WEB_APP}}.azurewebsites.net/.auth/me").subscribe(res => userInfo = res[0].user_id);

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM