Skip to content

Commit

Permalink
Merge branch 'feat/passport' into feat/passport-cache
Browse files Browse the repository at this point in the history
  • Loading branch information
Avantol13-machine-user committed Jan 26, 2022
2 parents 79eafe7 + 5d214c7 commit 5141b8f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion fence/blueprints/login/ras.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@


logger = get_logger(__name__)
PKEY_CACHE = {}


class RASLogin(DefaultOAuth2Login):
Expand Down Expand Up @@ -72,7 +73,7 @@ def post_login(self, user=None, token_result=None, id_from_idp=None):
users_from_passports = fence.resources.ga4gh.passports.sync_gen3_users_authz_from_ga4gh_passports(
[passport],
authz_policy_prefix="POST.LOGIN",
pkey_cache=pkey_cache,
pkey_cache=PKEY_CACHE,
db_session=current_session,
)
user_ids_from_passports = list(users_from_passports.keys())
Expand Down
2 changes: 1 addition & 1 deletion openapis/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -461,7 +461,7 @@ paths:
required: false
in: query
description: >-
if `no_force_sign=True` and the file requested is actually public, this will
if `no_force_sign=True`, this will
request to *not* sign the resulting URL (i.e. just provide the
public url without using anonymous signing creds).
schema:
Expand Down

0 comments on commit 5141b8f

Please sign in to comment.