我做了一些研究,发现以下是可用于oAuth2 + AngularJs的框架。
- 萨特利泽 - https://github.com/sahat/satellizer(今天最后一次提交)
- oauth-ng - https://github.com/angularjs-oauth/oauth-ng(上次提交时间:2016 年 6 月 30 日)
- Angular-OAuth2 - https://github.com/oauthjs/angular-oauth2(上次提交时间为 2016 年 2 月 12 日)
- AngularJS-OAuth2 - https://github.com/JamesRandall/AngularJS-OAuth2(上次提交时间:2016 年 3 月 15 日)
- 角度-oauth - https://github.com/angular-oauth/angular-oauth(上次提交时间为 2014 年 12 月 18 日)
有点不清楚,哪一个与身份服务器3配合得很好。您的建议是什么?还有其他最好的框架吗?
我使用了Brock Allen(https://github.com/IdentityModel/oidc-client-js)建议的客户端框架。我能够继续实施。
还发现了一个有趣的 AngularJs 模块,它是在 oidc-client - https://github.com/markphillips100/oidc-cordova-demo/blob/master/src/Oidc.Demo.Cordova/www/app/js/services/angular-oidc-client.js 之上编写的。