Skip to content

Commit

Permalink
Merge pull request #1594 from matyasselmeci/pr/software-4389.scitoken…
Browse files Browse the repository at this point in the history
…s-issuer

Add a dummy scitokens issuer block for origins that wouldn't otherwise have any
  • Loading branch information
djw8605 authored Feb 2, 2021
2 parents c97070d + bcfdfe9 commit 74586cd
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/stashcache.py
Original file line number Diff line number Diff line change
Expand Up @@ -531,8 +531,14 @@ def generate_origin_scitokens(vo_data: VOsData, resource_groups: List[ResourceGr
dirname, suppress_errors))
allowed_vos.append(vo_name)



# Older plugin versions require at least one issuer block (SOFTWARE-4389)
if not issuer_blocks:
issuer_blocks.append(
_get_scitokens_issuer_block(vo_name="nonexistent",
scitokens={"Issuer": "https://scitokens.org/nonexistent",
"Base Path": "/no-issuers-found"},
dirname="/no-issuers-found",
suppress_errors=suppress_errors))
issuer_blocks_str = "\n".join(issuer_blocks)
allowed_vos_str = ", ".join(allowed_vos)

Expand Down

0 comments on commit 74586cd

Please sign in to comment.