-
Notifications
You must be signed in to change notification settings - Fork 47
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
state
for passport causes fastify-passport
to fail
#376
Comments
Thanks for reporting! You are probably the best person equipped for diagnosing and fixing this. Would you like to give it a go and send a PR? |
Sure thing @mcollina , I'll come back at you as soon as I have a PR up and running. |
@vorillaz Did you get a chance to work on this one? |
This seems to be an issue with |
@sameer-coder are you doing any work on this? |
@simoneb |
I have investigated the issue. |
Can you explain how this all work to cause this problem? |
@mcollina However, Here comes to two solution.
|
Thanks @climba03003 for summarizing the problem. The reason why fastify-secure-session offers a get/set/delete methods is to protect against prototype pollution attacks. It's interesting to note that |
Thanks @climba03003 Thanks @mcollina for the explanation. So should we move from getter-setter to a plain object approach in |
IMHO I think it would be better to work on #319 first and see if any changes are needed here. I don't think the OP cares about using fastify-secure-session - we just need to provide a way to be compatible with the rest of the passport ecosystem. |
Sure. I will see if there are any needed changes there. Thanks |
Is this being worked on as part of #421? |
yes |
Let's link the PR so this issue is closed when the PR is merged then, please. Same with the other issue if not linked already |
Prerequisites
Fastify version
3.22.1
Plugin version
0.4.3
Node.js version
16.x
Operating system
macOS
Operating system version (i.e. 20.04, 11.3, 10)
macOS Big Sure 11.3.1
Description
When I am trying to pass some encoded state to the strategy the callback URLs shows the user as unauthenticated, it's also unclear how I could pass the encoded state from the redirect endpoint dynamically.
Steps to Reproduce
Expected Behavior
Step through the prevalidation hook and return the encoded state to the endpoint.
The text was updated successfully, but these errors were encountered: