简体   繁体   English

Angular 4 + MVC身份角色

[英]Angular 4 + MVC Identity Roles

I try to get the role from the user logged from HomeController with ADFS integration, but I´m using .html pages not .cshtml and I need use the claims and the user role in this component pages. 我尝试从具有ADFS集成的HomeController中记录的用户中获取角色,但是我使用的是.html页面而不是.cshtml,因此我需要在此组件页面中使用声明和用户角色。

How is the best way to share the current user with angular components? 如何通过角度分量与当前用户共享的最佳方法是什么?

Any ideas? 有任何想法吗?

Thanks in advance. 提前致谢。

If you are using Angular, you need adal.js . 如果您使用的是Angular,则需要adal.js。

But this is only available on ADFS 4.0. 但这仅在ADFS 4.0上可用。

You tagged as ADFS 2.0. 您已将其标记为ADFS 2.0。 There is no OAuth support on this version. 此版本不支持OAuth。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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