Skip to content

Add System.Web.Security.MachineKey #418

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Oct 13, 2023
Merged

Add System.Web.Security.MachineKey #418

merged 6 commits into from
Oct 13, 2023

Conversation

twsouthwick
Copy link
Member

@twsouthwick twsouthwick commented Oct 10, 2023

This adds the API backed by the ASP.NET Core data protection APIs. In order to share code between ASP.NET Core and framework with the same behavior, the ASP.NET Core data protection APIs must be used on the framework side as well. A sample has been added that shows how to enable that (this is already a supported scenario for ASP.NET Framework - this PR just hooks it up so the System.Web APIs can be used if needed).

Fixes #324

This adds the API backed by the ASP.NET Core data protection APIs. In order to share code between ASP.NET Core and framework with the same behavior, the ASP.NET Core data protection APIs must be used on the framework side as well. A sample has been added that shows how to enable that (this is already a supported scenario for migration - this PR just hooks it up so the previous API can be used if needed).
@twsouthwick twsouthwick requested a review from Tratcher October 11, 2023 16:59
Copy link
Member

@Tratcher Tratcher left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@blowdart FYI


app.Map("/", (HttpContext context) =>
{
context.Features.GetRequiredFeature<IHttpBodyControlFeature>().AllowSynchronousIO = true;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Eeewww 😂

@twsouthwick twsouthwick enabled auto-merge (squash) October 13, 2023 17:31
@twsouthwick twsouthwick merged commit b0fb3bf into main Oct 13, 2023
@twsouthwick twsouthwick deleted the tasou/machine-key branch October 13, 2023 17:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Consider supporting System.Web.Security.MachineKey
2 participants