Skip to content

Commit

Permalink
Merge pull request #2890 from HHS/OPS-2737-azure-prod-be-config
Browse files Browse the repository at this point in the history
add AMS config
  • Loading branch information
johndeange authored Oct 7, 2024
2 parents 4fafb35 + 0071837 commit c2586e6
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions backend/ops_api/ops/environment/azure/prod.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,20 @@
db_port = os.getenv("PGPORT")
db_name = os.getenv("PGDATABASE")

OPS_FRONTEND_URL = os.getenv("OPS_FRONTEND_URL")

SQLALCHEMY_DATABASE_URI = (
f"postgresql+psycopg2://{db_username}:{db_password}@{db_host}:{db_port}/{db_name}" # noqa: B950
)

AUTHLIB_OAUTH_CLIENTS = {
"hhsams": {
"server_metadata_url": "https://sso.acf.hhs.gov/auth/realms/ACF-AMS/.well-known/openid-configuration",
"token_endpoint": "https://sso.acf.hhs.gov/auth/realms/ACF-AMS/protocol/openid-connect/token",
"user_info_url": "https://sso.acf.hhs.gov/auth/realms/ACF-AMS/protocol/openid-connect/userinfo",
"client_id": "https://ops.opre.acf.gov/",
"client_kwargs": {"scope": "openid email"},
"aud": "https://sso.acf.hhs.gov/auth/realms/ACF-AMS/protocol/openid-connect/token",
"redirect_uri": "https://ops.opre.acf.gov/login",
},
}

0 comments on commit c2586e6

Please sign in to comment.