Skip to content

Commit

Permalink
Merge pull request #2897 from HHS/OPS-2737-azure-ams-fe-config
Browse files Browse the repository at this point in the history
Ops 2737 azure ams fe config
  • Loading branch information
johndeange authored Oct 8, 2024
2 parents 5186f01 + 541e79f commit 9638d31
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 7 deletions.
2 changes: 1 addition & 1 deletion backend/ops_api/ops/environment/azure/prod.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"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_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",
Expand Down
10 changes: 7 additions & 3 deletions frontend/src/helpers/backend.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,17 @@ export const callBackend = async (urlPath, action, requestBody, queryParams, use

export const authConfig = {
hhsams: {
auth_endpoint: "https://sso-stage.acf.hhs.gov/auth/realms/ACF-SSO/protocol/openid-connect/auth",
client_id: "44fe2c7a-e9c5-43ec-87e9-3de78d2d3a11",
auth_endpoint:
import.meta.env.VITE_HHSAMS_AUTH_ENDPOINT ||
"https://sso-stage.acf.hhs.gov/auth/realms/ACF-SSO/protocol/openid-connect/auth",
client_id: import.meta.env.VITE_HHSAMS_CLIENT_ID || "44fe2c7a-e9c5-43ec-87e9-3de78d2d3a11",
response_type: "code",
scope: "openid profile email",
redirect_uri: `${window.location.origin}/login`,
acr_values: 1,
logout_endpoint: "https://sso-stage.acf.hhs.gov/auth/realms/ACF-SSO/protocol/openid-connect/logout"
logout_endpoint:
import.meta.env.VITE_HHSAMS_LOGOUT_ENDPOINT ||
"https://sso-stage.acf.hhs.gov/auth/realms/ACF-SSO/protocol/openid-connect/logout"
},
logingov: {
auth_endpoint: "https://idp.int.identitysandbox.gov/openid_connect/authorize",
Expand Down
4 changes: 3 additions & 1 deletion frontend/vite-env/env.dev.local
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
VITE_ENV_VAR_EXAMPLE=dev-example
VITE_HHSAMS_CLIENT_ID=44fe2c7a-e9c5-43ec-87e9-3de78d2d3a11
VITE_HHSAMS_AUTH_ENDPOINT=https://sso-stage.acf.hhs.gov/auth/realms/ACF-SSO/protocol/openid-connect/auth
VITE_HHSAMS_LOGOUT_ENDPOINT=https://sso-stage.acf.hhs.gov/auth/realms/ACF-SSO/protocol/openid-connect/logout
4 changes: 3 additions & 1 deletion frontend/vite-env/env.production.local
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
VITE_ENV_VAR_EXAMPLE=prod-example
VITE_HHSAMS_CLIENT_ID=https://ops.opre.acf.gov
VITE_HHSAMS_AUTH_ENDPOINT=https://sso.acf.hhs.gov/auth/realms/ACF-AMS/protocol/openid-connect/auth
VITE_HHSAMS_LOGOUT_ENDPOINT=https://sso.acf.hhs.gov/auth/realms/ACF-AMS/protocol/openid-connect/logout
4 changes: 3 additions & 1 deletion frontend/vite-env/env.stg.local
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
VITE_ENV_VAR_EXAMPLE=stg-example
VITE_HHSAMS_CLIENT_ID=44fe2c7a-e9c5-43ec-87e9-3de78d2d3a11
VITE_HHSAMS_AUTH_ENDPOINT=https://sso-stage.acf.hhs.gov/auth/realms/ACF-SSO/protocol/openid-connect/auth
VITE_HHSAMS_LOGOUT_ENDPOINT=https://sso-stage.acf.hhs.gov/auth/realms/ACF-SSO/protocol/openid-connect/logout

0 comments on commit 9638d31

Please sign in to comment.