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 Api function to get random tag value add key authentication #23

Closed
wants to merge 5 commits into from

Conversation

brentm5
Copy link
Owner

@brentm5 brentm5 commented Mar 4, 2013

Closes #4 & Closes #6

@coveralls
Copy link

Coverage decreased (-0.28%) when pulling 32f1dc9 on add-api-to-get-random-tag-value into 1ad9294 on master.

View Details

@coveralls
Copy link

Coverage decreased (-7.79%) when pulling 58fc57e on add-api-to-get-random-tag-value into 1ad9294 on master.

View Details


private
def authenticate_user
if api_token_blank || invalid_api_token

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does it matter if the api token is blank? All we care is if its valid or not? If they send a blank token then it won't be valid.

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This has to do with the one set. If there isnt one sent then noneone should be able to access it

@coveralls
Copy link

Coverage increased (+0.68%) when pulling 33cce3a on add-api-to-get-random-tag-value into 1ad9294 on master.

View Details

@coveralls
Copy link

Coverage increased (+0.7%) when pulling 537945a on add-api-to-get-random-tag-value into 1ad9294 on master.

View Details


private
def authenticate_user
if api_token_not_set || invalid_api_token

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I still don't know why you even care if its blank? Why not just make sure it doesn't match?

@brentm5 brentm5 closed this Mar 5, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants