Skip to content

Adding example of AntiForgery scenarios with standards Web APIs #26350

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

Closed
brunolins16 opened this issue Jul 7, 2022 · 2 comments · Fixed by #26386
Closed

Adding example of AntiForgery scenarios with standards Web APIs #26350

brunolins16 opened this issue Jul 7, 2022 · 2 comments · Fixed by #26386
Assignees
Labels
doc-enhancement Source - Docs.ms Docs Customer feedback via GitHub Issue
Milestone

Comments

@brunolins16
Copy link
Member

Part of dotnet/aspnetcore#42586

Was decided to not have any in-box default behavior for both (API controllers and Minimal APIs), however, we should add an example of how the users could implement it using IAntiforgery services.

Here is a sample code with the server implementation: https://gist.github.com/brunolins16/3d11b2fd9861afaec22e79abfc2a55fd


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

@brunolins16 brunolins16 added this to the .NET 7.0 milestone Jul 7, 2022
@brunolins16 brunolins16 self-assigned this Jul 7, 2022
@dotnet-bot dotnet-bot added ⌚ Not Triaged Source - Docs.ms Docs Customer feedback via GitHub Issue labels Jul 7, 2022
@brunolins16
Copy link
Member Author

@Rick-Anderson I will create a PR for this issue and ask for your review, ok?

@Rick-Anderson
Copy link
Contributor

@brunolins16 don't worry about the wording, I can clean that up. Just get a good start.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
doc-enhancement Source - Docs.ms Docs Customer feedback via GitHub Issue
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants