Skip to content

Commit

Permalink
Add the audience back in
Browse files Browse the repository at this point in the history
  • Loading branch information
stefannica committed Sep 24, 2024
1 parent 4dd0242 commit 1a3680a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/zenml/zen_server/cloud_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ class ZenMLCloudConfiguration(BaseModel):
api_url: str
oauth2_client_id: str
oauth2_client_secret: str
oauth2_audience: str

@field_validator("api_url")
@classmethod
Expand Down Expand Up @@ -213,6 +214,7 @@ def _fetch_auth_token(self) -> str:
payload = {
"client_id": self._config.oauth2_client_id,
"client_secret": self._config.oauth2_client_secret,
"audience": self._config.oauth2_audience,
"grant_type": "client_credentials",
}
try:
Expand Down

0 comments on commit 1a3680a

Please sign in to comment.