Commit d53710b3 authored by David Trattnig's avatar David Trattnig
Browse files

Merge branch 'topic/tank-token' into 'master'

python/tank: don't set an Authorization Header when acquiring the tank session

See merge request aura/oidc-client-stubs!1
parents 1c189036 f15f2b7f
import requests
def get_session_token (cfg, access_token):
def get_session_token(cfg, access_token):
Retrieves a session token from tank, by using an access token previously
received from steering.
......@@ -10,7 +11,6 @@ def get_session_token (cfg, access_token):
print("[tank]: sending access token to session endpoint")
url = cfg["tank_base"] + cfg["tank_session_endpoint"]
headers["Authorization"] = "Bearer " + access_token
payload = {
"backend": "oidc",
"arguments": {
Supports Markdown
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