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

Re-log in the API after a "error":"Not authenticated" #95

Merged
merged 5 commits into from
Jul 2, 2020
Merged

Conversation

vlebourl
Copy link
Collaborator

@vlebourl vlebourl commented Jul 2, 2020

Add new api functions:

  • is_authenticated
  • logout

Add a relog in send_request if is_authenticated is False fixing issue #86

mark as logged out when receiving {"errorCode":"RESOURCE_ACCESS_DENIED","error":"Not authenticated"}
@vlebourl vlebourl added the bug Something isn't working label Jul 2, 2020
@lindemar
Copy link

lindemar commented Jul 2, 2020

This implementation in the tahoma_api.py fixed my login issue after updating TaHoma Box to version 2020.3.4-12. Thanks a lot for your effort!

@vlebourl vlebourl merged commit aadbc62 into master Jul 2, 2020
@vlebourl vlebourl deleted the fix-86 branch July 2, 2020 11:50
@vlebourl vlebourl mentioned this pull request Jul 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants