feat(appengine): Add/update AntiForgery sample
Kind of reverting #2204 by adding the sample back and updating it to .NET 6.
Not sure if it's ok to use the powerpack packages.
Adding the public docs linked in the README is still a WIP.
I tested the anti-forgery scenario by sending a GET for the form, redeploying (so at least shutdown/reboot the instance), and POSTing the response. Worked just fine for me.
Here is the summary of changes.
You are about to add 1 region tag.
- appengine/flexible/AntiForgery/AntiForgery.Sample/Program.cs:29, tag
dotnet_data_protection
This comment is generated by snippet-bot.
If you find problems with this result, please file an issue at:
https://github.com/googleapis/repo-automation-bots/issues.
To update this comment, add snippet-bot:force-run label or use the checkbox below:
- [ ] Refresh this comment
@amanda-tarafa Do you know if this PR is still active?
Yes, it's blocked on the Power Pack alternative.
I might have asked this before. Is it a viable option for us to pull in just enough Power Pack code for this sample to work (and remove the Power Pack as a dependency)? It would unblock the PR, but it doesn't feel right asking customers to do all of this setup.
Then again, you could make the same argument about recommending Power Pack.
I might have asked this before. Is it a viable option for us to pull in just enough Power Pack code for this sample to work (and remove the Power Pack as a dependency)? It would unblock the PR, but it doesn't feel right asking customers to do all of this setup.
Then again, you could make the same argument about recommending Power Pack.
@jahjahbin We are going to try and make a decision on how to best move forward this week. I'll let you know next week.
This PR is still blocked, but I'm switching teams Aug 5 onwards. I'm going to close this, but if there's a need for this sample back someone could clone it and make a new PR.