【发布时间】:2020-12-10 22:32:27
【问题描述】:
我有一个 Angular 应用程序,它使用 Identity Server 4 和 angular-auth-oidc-client 包使用静默刷新。所以这意味着我受到了 https://www.thinktecture.com/en/identity/samesite/prepare-your-identityserver 中描述的 SameSite Cookie 问题的影响。
所以我完全按照文章中的描述应用了修复。
本地(本地主机)一切正常。我可以登录,如果我按 F5,我仍然正确登录:
Auth result received AuthorizationState:authorized validationResult:Ok
但是,当部署到 azure 时,我仍然在 chrome 中收到警告:
我第一次可以登录,但如果我再按 F5,我就不再登录了:
Auth result received AuthorizationState:unauthorized validationResult:LoginRequired
您知道还有什么问题吗?如果我用 Firefox 或 edge 试试这个,没有问题。
【问题讨论】:
标签: angular google-chrome asp.net-core oauth identityserver4