ASP.NET Web API Identity - Load Balancing Scenario

Is the ASP.NET Web API Pointer Token Used in a Load Balancing Scenario? Will it support the generated token across all installations and servers in a load balancing scenario?

thank

+3


source to share


1 answer


This is true. The generated token is signed with a machine config key (this depends on how you host your API). If you are running multiple Windows servers in a cluster, this configuration should be the same for all servers in the cluster. That being said, you shouldn't have any problems. A good example for this scenario is running an application using ASP.NET Identity on Microsoft Azure. In this case, you will not run into this problem if the bearer token is invalid because server A signed it and you are redirected to server B.



For more on this, see Brock Allen's answer in this question .

+3


source







All Articles