【发布时间】:2020-05-22 09:27:57
【问题描述】:
我在 .NET Core 站点中使用 Identity Server 4,并使用它来处理带有 PCKE 的 Angular 应用程序的 OAUTH(使用 angular-oauth-oidc 库)。正常的登录过程可以正常工作,但是当网站尝试执行静默刷新时,它会向 http://identityServerURL/connect/token 发送 HTTP POST,其中包含标题:
- grant_type:刷新令牌
- client_id: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
- 范围: openid profile offline_access
- refresh_token: null
- client_secret: xxxxxxxxxxxxxxxxxxxxx
从 IdentityServer 收到一个 Http 400 代码,并且从日志中显示不允许向该端点进行 HTTP POST。
是否有人对此有任何想法和/或如何让刷新令牌工作?
提前致谢
【问题讨论】:
标签: angular identityserver4 angular-oauth2-oidc