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

state parameter required on verify POST #81

Closed
ghost opened this issue Mar 10, 2015 · 2 comments
Closed

state parameter required on verify POST #81

ghost opened this issue Mar 10, 2015 · 2 comments

Comments

@ghost
Copy link

ghost commented Mar 10, 2015

It looks like the state parameter is needed in POST requests to the auth endpoint on IndieAuth.com. Is this actually really required in order for IndieAuth to be safe?

@ghost
Copy link
Author

ghost commented Mar 15, 2015

My client lib just sends the state parameter now, IndieCert just ignores it...

@aaronpk
Copy link
Owner

aaronpk commented Jun 1, 2015

The state parameter is used to prevent CSRF attacks. See http://tools.ietf.org/html/rfc6749#section-10.12 for more details. By requiring the state parameter is sent to the authorization endpoint when verifying auth codes, it acts as a built-in check that the client used it.

@aaronpk aaronpk closed this as completed Jun 1, 2015
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

1 participant