Skip to content

Commit

Permalink
Merge pull request #23 from vkuznet/fix-logic
Browse files Browse the repository at this point in the history
Fix logic of creating credentials
  • Loading branch information
bbockelm authored Dec 17, 2018
2 parents 567d177 + 18a90c7 commit a04e2e9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/x509_scitokens_issuer/x509_scitokens_issuer.py
Original file line number Diff line number Diff line change
Expand Up @@ -283,8 +283,6 @@ def token_issuer():
for key, val in request.environ.items():
if app.config.get('VERBOSE', False):
print("### request {} {}".format(key, val))
if key.startswith("GRST_CRED_AURI_"):
entry_num = int(key[15:]) # 15 = len("GRST_CRED_AURI_")
if key.startswith(pattern):
if pattern == "HTTP_CMS_AUTH":
if key.endswith("_DN"):
Expand All @@ -295,8 +293,10 @@ def token_issuer():
val = "fqan:/{}".format(val.split(':')[-1])
else:
continue
creds[entry_num] = val
entry_num += 1
creds[entry_num] = val
entry_num += 1
else:
entry_num = int(key[15:]) # 15 = len("GRST_CRED_AURI_")
keys = creds.keys()
keys.sort()
entries = []
Expand Down

0 comments on commit a04e2e9

Please sign in to comment.