Skip to content

Commit

Permalink
Merge pull request #983 from uc-cdis/feat/storage_creds
Browse files Browse the repository at this point in the history
fix(google): pass storage creds into sync so Google Storage backend c…
  • Loading branch information
Avantol13 committed Nov 23, 2021
2 parents 60c014c + cbea9e9 commit fc74833
Show file tree
Hide file tree
Showing 2 changed files with 4 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 @@ -169,10 +169,11 @@ def post_login(self, user=None, token_result=None, id_from_idp=None):
dbGaP = os.environ.get("dbGaP") or config.get("dbGaP")
if not isinstance(dbGaP, list):
dbGaP = [dbGaP]
storage_creds = config["STORAGE_CREDENTIALS"]

sync = fence.scripting.fence_create.init_syncer(
dbGaP,
None,
storage_creds,
DB,
arborist=arborist,
)
Expand Down
3 changes: 2 additions & 1 deletion fence/resources/ga4gh/passports.py
Original file line number Diff line number Diff line change
Expand Up @@ -339,8 +339,9 @@ def sync_visa_authorization(gen3_user, ga4gh_visas, expiration):
from fence.settings import DB
except ImportError:
pass
storage_creds = config["STORAGE_CREDENTIALS"]
syncer = fence.scripting.fence_create.init_syncer(
dbgap_config, None, DB, arborist=arborist_client
dbgap_config, storage_creds, DB, arborist=arborist_client
)

with flask.current_app.db.session as db_session:
Expand Down

0 comments on commit fc74833

Please sign in to comment.