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

Merge branch 'master' of

parents 142eab7a d53710b3
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