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

Is there a way to check if AuthenticatedClient() worked? #290

Closed
nitrocode opened this issue Apr 17, 2018 · 4 comments
Closed

Is there a way to check if AuthenticatedClient() worked? #290

nitrocode opened this issue Apr 17, 2018 · 4 comments
Labels

Comments

@nitrocode
Copy link

No description provided.

@mcardillo55
Copy link
Collaborator

What do you mean by "worked"?

@nitrocode
Copy link
Author

How do I know if AuthenticatedClient() failed to authenticate?

@mcardillo55
Copy link
Collaborator

From my quick tests, if authentication is unsuccessful, the method will return the JSON: {u'message': u'invalid signature'}

It looks like #260 will improve this error handling, by raising HTTPStatus exceptions.

@nitrocode
Copy link
Author

Thanks! I agree, throwing raising an error would be ideal.

I'll use the technique you provided until that issue is closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants