Skip to content

Commit

Permalink
Merge pull request #19 from h2oai/MT/refresh-token-url
Browse files Browse the repository at this point in the history
Update h2o_ai_cloud.py
  • Loading branch information
mtanco authored Jul 11, 2022
2 parents b7077f6 + b52d7b1 commit c963a4d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions h2o_ai_cloud.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# Information available at https://H2O_CLOUD_URL/cli-and-api-access
TOKEN_ENDPOINT = "https://auth.cloud.h2o.ai/auth/realms/hac/protocol/openid-connect/token"
API_CLIENT_ID = "hac-platform-public"

REFRESH_TOKEN_URL = "https://cloud.h2o.ai/auth/get-platform-token"


def token_provider():
Expand All @@ -23,7 +23,6 @@ def token_provider():
clicking on your name from the H2O AI Cloud UI.
"""

REFRESH_TOKEN_URL = "https://" + H2O_CLOUD_URL + "/auth/get-platform-token"
print(f"Visit {REFRESH_TOKEN_URL} to get your platform token")

return h2o_authn.TokenProvider(
Expand Down

0 comments on commit c963a4d

Please sign in to comment.