Skip to content
This repository has been archived by the owner on Nov 20, 2024. It is now read-only.

Commit

Permalink
add oauth, companion PR OpenVoiceOS/ovos-personal-backend#36
Browse files Browse the repository at this point in the history
  • Loading branch information
JarbasAl committed Oct 3, 2022
1 parent 84cf3ea commit c0f8dfc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions ovos_backend_client/backends/personal.py
Original file line number Diff line number Diff line change
Expand Up @@ -348,8 +348,7 @@ def oauth_get_token(self, dev_cred):
Returns:
json string containing token and additional information
"""
# return self.get(f"{self.backend_url}/{self.backend_version}/auth/callback/" + str(dev_cred)).json()
raise NotImplementedError() # TODO - implement upstream
return self.get(f"{self.backend_url}/{self.backend_version}/device/{self.uuid}/token/{dev_cred}").json()

# Email API
def email_send(self, title, body, sender):
Expand Down
2 changes: 1 addition & 1 deletion ovos_backend_client/backends/selene.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def oauth_get_token(self, dev_cred):
Returns:
json string containing token and additional information
"""
return self.get(f"{self.backend_url}/{self.backend_version}/auth/callback/" + str(dev_cred)).json()
return self.get(f"{self.backend_url}/{self.backend_version}/device/{self.uuid}/token/{dev_cred}").json()

# Admin API - NOT available, use home.mycroft.ai instead
def admin_pair(self, uuid=None):
Expand Down

0 comments on commit c0f8dfc

Please sign in to comment.