Skip to content

Commit

Permalink
Enable pass token in url
Browse files Browse the repository at this point in the history
  • Loading branch information
micafer committed Dec 11, 2024
1 parent 8a6ddad commit ca432f2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,10 @@ def home():
if v['description'].find(template_filter) != -1 and "parents" not in tosca["metadata"]:
templates[k] = v

# To make easier test endpoints
if 'token' in request.args:
settings.debug_oidc_token = request.args['token']

if settings.debug_oidc_token:
oidc_blueprint.session.token = {'access_token': settings.debug_oidc_token}
else:
Expand Down

0 comments on commit ca432f2

Please sign in to comment.