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

Update documentation for validate_token #277

Conversation

adamgall
Copy link

The Usage TL;DR section of README.md has documentation for validate_token that states that the method takes uid and auth_token as params. However, the class where validate_token is defined (TokenValidationsController) includes a :before_filter :set_user_by_token, who's definition parses headers and query params for access-token, not auth_token. This commit updates the documentation to specify that access-token is an accepted param instead of auth_token. This closes #270.

The `Usage TL;DR` section of README.md has documentation for `validate_token` that states that the method takes `id` and `auth_token` as params. However, the class where `validate_token` is defined (`TokenValidationsController`) includes a `:before_filter :set_user_by_token`, who's definition parses headers and query params for `access-token`, not `auth_token`. This commit updates the documentation to specify that `access-token` is an accepted param instead of `auth_token`.
@booleanbetrayal
Copy link
Collaborator

Thanks!

booleanbetrayal added a commit that referenced this pull request Jul 3, 2015
…mentation

Update documentation for validate_token
@booleanbetrayal booleanbetrayal merged commit 94caa2a into lynndylanhurley:master Jul 3, 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

Successfully merging this pull request may close these issues.

Shouldn't validate_token param be access-token, not auth_token?
2 participants