OpenIddict: 401 errors when two or more service instance count

后端 未结 2 1872
长发绾君心
长发绾君心 2021-01-14 09:53

I have a .NET Core application with Angular2 UI running in a Service Fabric Cluster that I secured using OpenIddict. I followed this example: https://github.com/openiddict/o

2条回答
  •  庸人自扰
    2021-01-14 10:06

    OpenIddict relies on the ASP.NET Core Data Protection stack to generate and protect its authorization codes, refresh tokens and access tokens (unless you explicitly opt for JWT as the access token format).

    To ensure these tokens can be read across instances, you must configure ASP.NET Core Data Protection to share the same key ring. I recommend reading the related documentation on Microsoft's website if you need more information about this procedure.

提交回复
热议问题