Skip to content

Commit

Permalink
change to constant
Browse files Browse the repository at this point in the history
  • Loading branch information
hpal committed Mar 1, 2024
1 parent 28f8195 commit adfdea2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyiceberg/catalog/rest.py
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ def _fetch_access_token(self, session: Session, credential: str) -> str:
client_id, client_secret = None, credential

# take scope from properties or use default CATALOG_SCOPE
scope = self.properties.get("scope") or CATALOG_SCOPE
scope = self.properties.get(SCOPE) or CATALOG_SCOPE

data = {GRANT_TYPE: CLIENT_CREDENTIALS, CLIENT_ID: client_id, CLIENT_SECRET: client_secret,
SCOPE: scope}
Expand Down

0 comments on commit adfdea2

Please sign in to comment.