-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: hca ma pilot prod is pointing to terra dev resources instead of …
…terra prod (#3958) (#3959) Co-authored-by: Fran McDade <[email protected]>
- Loading branch information
Showing
4 changed files
with
27 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 13 additions & 23 deletions
36
explorer/site-config/hca-dcp/ma-prod/authentication/authentication.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,18 @@ | ||
import { AuthenticationConfig } from "@clevercanary/data-explorer-ui/lib/config/entities"; | ||
import { | ||
LoginTermsOfService, | ||
LoginText, | ||
} from "../../../../app/components/common/MDXContent/hca-dcp"; | ||
|
||
export function getAuthenticationConfig( | ||
portalURL: string | ||
authenticationConfig: AuthenticationConfig | ||
): AuthenticationConfig { | ||
return { | ||
googleGISAuthConfig: { | ||
clientId: | ||
"473200283737-4pt6e9lraf5jbb650f9kp7ethelv4a8l.apps.googleusercontent.com", | ||
googleProfileEndpoint: "https://www.googleapis.com/oauth2/v3/userinfo", | ||
scope: | ||
"https://www.googleapis.com/auth/userinfo.email https://www.googleapis.com/auth/userinfo.profile openid", | ||
}, | ||
termsOfService: <LoginTermsOfService portalURL={portalURL} />, | ||
terraAuthConfig: { | ||
termsOfServiceEndpoint: | ||
"https://sam.dsde-dev.broadinstitute.org/register/user/v2/self/termsOfServiceDetails", | ||
terraProfileEndpoint: | ||
"https://sam.dsde-dev.broadinstitute.org/register/user/v1", | ||
}, | ||
text: <LoginText portalURL={portalURL} />, | ||
title: "Sign in to your account", | ||
}; | ||
const authentication = { ...authenticationConfig }; | ||
if (authentication.googleGISAuthConfig) { | ||
authentication.googleGISAuthConfig.clientId = | ||
"473200283737-4pt6e9lraf5jbb650f9kp7ethelv4a8l.apps.googleusercontent.com"; | ||
} | ||
if (authentication.terraAuthConfig) { | ||
authentication.terraAuthConfig.termsOfServiceEndpoint = | ||
"https://sam.dsde-prod.broadinstitute.org/register/user/v2/self/termsOfServiceDetails"; | ||
authentication.terraAuthConfig.terraProfileEndpoint = | ||
"https://sam.dsde-prod.broadinstitute.org/register/user/v1"; | ||
} | ||
return authentication; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters