Set variable portal type (needed for auth)

This commit is contained in:
bealler
2020-12-15 15:51:52 -05:00
parent a048fec05a
commit 5174f5a6d7
4 changed files with 11 additions and 10 deletions

View File

@@ -42,8 +42,8 @@ class CloudSDK:
def __init__(self):
self.user = user
def get_bearer(cloudSDK_url):
cloud_login_url = cloudSDK_url+"/management/v1/oauth2/token"
def get_bearer(cloudSDK_url, cloud_type):
cloud_login_url = cloudSDK_url+"/management/"+cloud_type+"/oauth2/token"
payload = '''
{
"userId": "'''+user+'''",