Skip to content

Commit

Permalink
Issue ref: OAuth 2.0 Credential Format for Delta Sharing Client delta…
Browse files Browse the repository at this point in the history
  • Loading branch information
dialberg committed Apr 18, 2023
1 parent 8663a63 commit 9bab303
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions python/delta_sharing/protocol.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,16 +78,16 @@ def from_json(json) -> "DeltaSharingProfile":
elif share_credentials_version == 2:
type = json["type"]
if type == "persistent_oauth2.0":
token_endpoint = json["token_endpoint"]
token_endpoint = json["tokenEndpoint"]
if token_endpoint.endswith("/"):
token_endpoint = token_endpoint[:-1]
return DeltaSharingProfile(
share_credentials_version=share_credentials_version,
type=type,
endpoint=endpoint,
token_endpoint = token_endpoint,
client_id = json["client_id"],
client_secret = json["client_secret"],
client_id = json["clientID"],
client_secret = json["clientSecret"],
)
elif type == "bearer_token":
return DeltaSharingProfile(
Expand Down

0 comments on commit 9bab303

Please sign in to comment.