Skip to content

Commit

Permalink
fix: remove wrong audience (copy paste error) (#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
hf-kklein authored Mar 20, 2024
1 parent 1d2a3c4 commit 8ee7bb9
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/bssclient/client/oauth.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,12 +74,7 @@ def __init__(self, base_url: URL, oauth_client_id: str, oauth_client_secret: str
async def _get_new_token(self) -> str:
"""get a new JWT token from the oauth server"""
_logger.debug("Retrieving a new token")
token, _ = await self._oauth2client.get_access_token(
"code",
grant_type="client_credentials",
audience="https://transformer.bee",
# without the audience, you'll get an HTTP 403
)
token, _ = await self._oauth2client.get_access_token("code", grant_type="client_credentials")
return token

async def _get_oauth_token(self) -> str:
Expand Down

0 comments on commit 8ee7bb9

Please sign in to comment.