How to implement machineKey in ASP.NET Core 2.0

后端 未结 4 560
傲寒
傲寒 2020-12-03 16:50

In ASP.NET (not core) I would normally add a machineKey to the web.config so that I could perform some functions on a local machine instead of the server so that database/ca

4条回答
  •  醉梦人生
    2020-12-03 17:34

    For legacy purposes where you want to build out your ASP.NET Core applications based on some classic ASP.NET application that is responsible for generating the authentication cookies, there is an open source library available that enables you to consume these legacy cookies into your ASP.NET Core application. The developers have used the .NET Framework reference implementation to build their own Machinekey based encryption/decryption logic. See https://github.com/synercoder/FormsAuthentication

提交回复
热议问题