阅读背景:

使用OAuth和承载令牌从ASP.NET身份将用户角色返回到AngularJS应用程序

来源:互联网 

I'm implementing an AngularJS SPA with a backend implemented as a WebAPI seeded from a Visual Studio 2013 template. AngularJS does everything including login and I've successfully got it submitting to //localhost/token and received back a token which I add to subsequent request headers. However, I now want to make decisions on what AngularJS templates to render based on the users role(s) and therefore I need the role(s) client-side (I'm securing all my server code by role so having these decisions made client-side is fine.)I'm implementing an AngularJS SPA with a backen




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: