Commit f15f2b7f authored by Christian Pointner's avatar Christian Pointner
Browse files

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

parent 8f7d0eb3
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