Skip to content
This repository has been archived by the owner on Jul 25, 2024. It is now read-only.

Commit

Permalink
[BAU] log additional auth details from secret
Browse files Browse the repository at this point in the history
  • Loading branch information
cyrusdobbs committed Dec 4, 2023
1 parent 0ee088b commit cbaf722
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,9 @@ def create_app(config_class=Config):

# TODO: TOWNS_FUND_AUTH is currently stored in const.py but this isn't isn't a good solution.
# We need to decide where we should store and inject specific auth mappings from.
app.logger.info("Setting up auth")
email_mapping = copy(TOWNS_FUND_AUTH)
app.logger.info(f"Additional auth details from secret: {Config.ADDITIONAL_EMAIL_LOOKUPS}")
email_mapping.update(Config.ADDITIONAL_EMAIL_LOOKUPS)
app.config["AUTH_MAPPING"]: AuthMapping = build_auth_mapping(Config.FUND_NAME, email_mapping)

Expand Down

0 comments on commit cbaf722

Please sign in to comment.