Commit 6ce08f52 authored by Spencer Sutton's avatar Spencer Sutton
Browse files

Still fixing

parent 11c8668c
......@@ -90,6 +90,6 @@ def get_service_principal_token():
token_url = '{}?grant_type=client_credentials&client_id={}&scope={}'.format(token_url,client_id, aws_oauth_custom_scope)
response = requests.post(url=token_url, headers=headers)
# return 'Bearer {}'.format(json.loads(response.content.decode())['access_token'])
print(json.loads(response.content.decode())['access_token'])
return json.loads(response.content.decode())['access_token']
return 'Bearer {}'.format(json.loads(response.content.decode())['access_token'])
# print(json.loads(response.content.decode())['access_token'])
# return json.loads(response.content.decode())['access_token']
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment