【问题标题】:What is the best flow for Angular2 application and asp.net core 2.0 apiAngular2 应用程序和 asp.net core 2.0 api 的最佳流程是什么
【发布时间】:2018-07-30 17:21:38
【问题描述】:

我有一个 asp.net core 2.0 webapi 和纯 angular2 应用程序。我正在使用 Identityserver4 来实现 OpenId 和 OAuth2 来保护 webapi。

谁能建议实现 angular2 客户端应用程序的最佳流程是什么?

谢谢

【问题讨论】:

  • 很多取决于您的具体需求。为什么需要 Angular?由于 Asp。 Net也可以做前端?这将回答 Angular 的角色是什么......
  • OIDC 隐式流

标签: angular asp.net-core-2.0 identityserver4 asp.net-core-webapi


【解决方案1】:

使用 oidc-client-js 库的隐式流来做脏活。

https://github.com/IdentityModel/oidc-client-js

该库可以做一些不错的事情,例如会话监控和访问令牌的自动更新。

【讨论】:

猜你喜欢
  • 2010-09-10
  • 2010-09-30
  • 1970-01-01
  • 1970-01-01
  • 2021-10-28
  • 2010-11-10
  • 2017-10-15
  • 2019-01-14
  • 2015-02-11
相关资源
最近更新 更多