Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Issue #3191] Adjust auth logic initialization to be configured by env var #3206

Merged
merged 1 commit into from
Dec 16, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions api/src/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,8 @@ def create_app() -> APIFlask:
register_index(app)
register_search_client(app)

# TODO - once we merge the auth changes for setting up the initial route
# will reuse the config from it, for now we'll do this a bit hacky
# This cannot be removed non-locally until we setup RSA keys for non-local envs
if os.getenv("ENVIRONMENT") == "local":
auth_endpoint_config = AuthEndpointConfig()
if auth_endpoint_config.auth_endpoint:
initialize_login_gov_config()
initialize_jwt_auth()

Expand Down