Stringer Bell
Stringer Bell

Reputation: 265

Creating .NET Core DataProtectionProvider that uses legacy machineKey

I have an application that uses Asp.Net Identity. I need to generate a GRANT-TOKEN for that application in an Azure Function v3. When I've had to do this before in a .NET 4.6 Class Library I created a custom IDataProtector that used System.Web.Security.MachineKey.

I'm struggling to find anything that describes how I can create a DataProtectionProvider with a fixed valiadtionKey and decryptionKey.

Is this possible?

Upvotes: 2

Views: 330

Answers (1)

Stringer Bell
Stringer Bell

Reputation: 265

Someone's created a Machine Key DataProtectionProvider here and it worked without issue.

Upvotes: 1

Related Questions