How do I implement Office 365 Authentication in ASP.NET Core and Blazor (Server-Client app)

我的未来我决定 提交于 2020-07-10 06:21:07

问题


I have downloaded and installed "ASP.NET Core and Blazor updates in .NET Core 3.0 Preview 9".

I wanted to implement Office 365 Authentication in ASP.NET Core and Blazor (Server-Client app).

I have used two layout pages for login and admin panel. When user start the application then it reaches the login page (login.razor and its layout is LandingLayout). Once user successful office 365 logged in then it redirects to admin dashboard page (dashboard.razor and its layout is MainLayout).

  • I need to show/hide menus based on user groups (from office 365 after successful login)
  • How do I bind user information in Claim authentication
  • How do I get user roles or groups from Office 365
  • How do I get list of user emails from Office 365 with same domain logged in by admin user. This list of emails will bind in dropdownlist - select)
  • How do I setup startup Razor Page instead of using index.html (in wwwroot Client app)

Any help greatly appreciated!!

Thanks and regards.

来源:https://stackoverflow.com/questions/57942802/how-do-i-implement-office-365-authentication-in-asp-net-core-and-blazor-server

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