Skip to content
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

Add a CSRF token to the state parameter #5

Open
robotdan opened this issue Mar 31, 2020 · 3 comments
Open

Add a CSRF token to the state parameter #5

robotdan opened this issue Mar 31, 2020 · 3 comments

Comments

@robotdan
Copy link
Member

If NodeBB supports a CSRF token, we can grab it or generate a new one and pass it along in the state parameter.

@julianlam
Copy link

julianlam commented Dec 29, 2021

@robotdan Yes, we do send one in:

https://github.com/NodeBB/NodeBB/blob/fb363957d1ff8ac63c0a50aaeeb2dd86975876bc/src/routes/authentication.js#L96-L99

We pass in a csrf token in state and verify that the value is returned in the state param in the query string at the callback URL handler.

@robotdan
Copy link
Member Author

Thanks @julianlam !

@julianlam
Copy link

Just a tad late on the reply 🙂

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

No branches or pull requests

2 participants