From 9c1764d8c741de089294bc47c7af8a22be8dc9d5 Mon Sep 17 00:00:00 2001 From: Fran McDade Date: Tue, 12 Mar 2024 16:24:21 +1000 Subject: [PATCH] feat: add "request access" button to managed access project detail pages (#3933) --- .../hca-dcp/loginTermsOfService.mdx | 9 ++---- .../common/MDXContent/hca-dcp/loginText.mdx | 4 +-- explorer/app/components/index.tsx | 1 + explorer/app/content/anvil-cmg/guides.mdx | 4 --- explorer/app/content/anvil-cmg/privacy.mdx | 4 --- .../content/anvil-cmg/terms-of-service.mdx | 4 --- explorer/app/content/common/contentPages.ts | 6 ++-- explorer/app/content/common/entities.ts | 8 ++---- explorer/app/content/lungmap/apis.mdx | 4 --- explorer/app/content/lungmap/metadata.mdx | 4 --- explorer/app/content/lungmap/privacy.mdx | 4 --- .../dataSummaryMapper/dataSummaryMapper.ts | 6 +++- .../azul/hca-dcp/common/viewModelBuilders.ts | 22 +++++++++++++++ explorer/package-lock.json | 14 +++++----- explorer/package.json | 2 +- .../pages/[entityListType]/[...params].tsx | 2 +- explorer/pages/[entityListType]/index.tsx | 2 +- explorer/pages/apis/index.tsx | 9 +++--- explorer/pages/guides/index.tsx | 9 +++--- explorer/pages/metadata/index.tsx | 9 +++--- explorer/pages/privacy/index.tsx | 9 +++--- explorer/pages/terms-of-service/index.tsx | 9 +++--- .../authentication/authentication.ts | 21 -------------- .../authentication/authentication.tsx | 28 +++++++++++++++++++ .../site-config/hca-dcp/cc-ma-dev/config.ts | 4 +-- explorer/site-config/hca-dcp/ma-dev/config.ts | 4 +-- .../ma-prod/authentication/authentication.ts | 21 -------------- .../ma-prod/authentication/authentication.tsx | 28 +++++++++++++++++++ .../site-config/hca-dcp/ma-prod/config.ts | 4 +-- 29 files changed, 135 insertions(+), 120 deletions(-) delete mode 100644 explorer/site-config/hca-dcp/cc-ma-dev/authentication/authentication.ts create mode 100644 explorer/site-config/hca-dcp/cc-ma-dev/authentication/authentication.tsx delete mode 100644 explorer/site-config/hca-dcp/ma-prod/authentication/authentication.ts create mode 100644 explorer/site-config/hca-dcp/ma-prod/authentication/authentication.tsx diff --git a/explorer/app/components/common/MDXContent/hca-dcp/loginTermsOfService.mdx b/explorer/app/components/common/MDXContent/hca-dcp/loginTermsOfService.mdx index 0f8b74645..8068bdc42 100644 --- a/explorer/app/components/common/MDXContent/hca-dcp/loginTermsOfService.mdx +++ b/explorer/app/components/common/MDXContent/hca-dcp/loginTermsOfService.mdx @@ -1,10 +1,7 @@ import { Link } from "@clevercanary/data-explorer-ui/lib/components/Links/components/Link/link"; - I have read and agree to{" "} - {" "} - and terms of service + I have read and agree to + + and terms of service diff --git a/explorer/app/components/common/MDXContent/hca-dcp/loginText.mdx b/explorer/app/components/common/MDXContent/hca-dcp/loginText.mdx index 93daae1ce..97b4df50a 100644 --- a/explorer/app/components/common/MDXContent/hca-dcp/loginText.mdx +++ b/explorer/app/components/common/MDXContent/hca-dcp/loginText.mdx @@ -1,6 +1,6 @@ import { HelpIconButton } from "@clevercanary/data-explorer-ui/lib/components/common/Button/components/HelpIconButton/helpIconButton"; - Please sign in to your Data Explorer account{" "} - + Please sign in to your Data Explorer account + diff --git a/explorer/app/components/index.tsx b/explorer/app/components/index.tsx index 3895e9673..9a13cbe24 100644 --- a/explorer/app/components/index.tsx +++ b/explorer/app/components/index.tsx @@ -33,6 +33,7 @@ export { Stack } from "@clevercanary/data-explorer-ui/lib/components/common/Stac export { StaticImage } from "@clevercanary/data-explorer-ui/lib/components/common/StaticImage/staticImage"; export { StatusBadge } from "@clevercanary/data-explorer-ui/lib/components/common/StatusBadge/statusBadge"; export { TagWarning } from "@clevercanary/data-explorer-ui/lib/components/common/Tag/tag.styles"; +export { TypographyWordBreak } from "@clevercanary/data-explorer-ui/lib/components/common/Typography/TypographyWordBreak/TypographyWordBreak"; export { ConditionalComponent } from "@clevercanary/data-explorer-ui/lib/components/ComponentCreator/components/ConditionalComponent/conditionalComponent"; export { DetailViewTable } from "@clevercanary/data-explorer-ui/lib/components/Detail/components/DetailViewTable/detailViewTable"; export { DownloadCurlCommandForm } from "@clevercanary/data-explorer-ui/lib/components/Export/components/DownloadCurlCommand/components/DownloadCurlCommandForm/downloadCurlCommandForm"; diff --git a/explorer/app/content/anvil-cmg/guides.mdx b/explorer/app/content/anvil-cmg/guides.mdx index 0ba9787f9..747c0a784 100644 --- a/explorer/app/content/anvil-cmg/guides.mdx +++ b/explorer/app/content/anvil-cmg/guides.mdx @@ -1,7 +1,3 @@ ---- -layoutStyle: "DEFAULT" ---- - => { return { breadcrumbs: getProjectBreadcrumbs(projectsResponse, viewContext), + callToAction: getProjectCallToAction(projectsResponse), title: processEntityValue(projectsResponse.projects, "projectTitle"), }; }; @@ -1748,6 +1750,26 @@ export function getProjectBreadcrumbs( return breadcrumbs; } +/** + * Returns the callToAction prop for the Hero component from the given projects response. + * @param projectsResponse - Response model return from projects API. + * @returns model to be used as props for the CallToActionButton component. + */ +function getProjectCallToAction( + projectsResponse: ProjectsResponse +): CallToAction | undefined { + const isReady = isResponseReady(projectsResponse); + const isAccessGranted = isProjectAccessible(projectsResponse); + if (!isReady || isAccessGranted) { + return; + } + return { + label: "Request Access", + target: ANCHOR_TARGET.BLANK, + url: "https://duos.org/datalibrary/HCA", + }; +} + /** * Returns project file formats from the projects API response. * @param projectsResponse - Response returned from projects API response. diff --git a/explorer/package-lock.json b/explorer/package-lock.json index ec2a98357..dd023690e 100644 --- a/explorer/package-lock.json +++ b/explorer/package-lock.json @@ -8,7 +8,7 @@ "name": "explorer", "version": "0.1.0", "dependencies": { - "@clevercanary/data-explorer-ui": "68.0.0", + "@clevercanary/data-explorer-ui": "70.0.0", "@emotion/react": "11.11.1", "@emotion/styled": "11.11.0", "@mdx-js/loader": "^3.0.1", @@ -2188,9 +2188,9 @@ "dev": true }, "node_modules/@clevercanary/data-explorer-ui": { - "version": "68.0.0", - "resolved": "https://registry.npmjs.org/@clevercanary/data-explorer-ui/-/data-explorer-ui-68.0.0.tgz", - "integrity": "sha512-C8CTQBU0NioBiAcBWfErarFHcn6kaceUPy0UyzFCTUUod0P0TpPXBS/bM59LpZSPMMrksZl38nmaTsf8KYSdWg==", + "version": "70.0.0", + "resolved": "https://registry.npmjs.org/@clevercanary/data-explorer-ui/-/data-explorer-ui-70.0.0.tgz", + "integrity": "sha512-Yp8z7Etcsybyql1WNlFYNQa1GATUfke5DQBm3IA4zFKRsMt1fJXlfQEafqpJBc2DdEVh42gMm0FYyISCvYRElg==", "engines": { "node": "20.10.0" }, @@ -31859,9 +31859,9 @@ "dev": true }, "@clevercanary/data-explorer-ui": { - "version": "68.0.0", - "resolved": "https://registry.npmjs.org/@clevercanary/data-explorer-ui/-/data-explorer-ui-68.0.0.tgz", - "integrity": "sha512-C8CTQBU0NioBiAcBWfErarFHcn6kaceUPy0UyzFCTUUod0P0TpPXBS/bM59LpZSPMMrksZl38nmaTsf8KYSdWg==", + "version": "70.0.0", + "resolved": "https://registry.npmjs.org/@clevercanary/data-explorer-ui/-/data-explorer-ui-70.0.0.tgz", + "integrity": "sha512-Yp8z7Etcsybyql1WNlFYNQa1GATUfke5DQBm3IA4zFKRsMt1fJXlfQEafqpJBc2DdEVh42gMm0FYyISCvYRElg==", "requires": {} }, "@colors/colors": { diff --git a/explorer/package.json b/explorer/package.json index 7d55e49c2..d865be7f2 100644 --- a/explorer/package.json +++ b/explorer/package.json @@ -36,7 +36,7 @@ "get-cellxgene-projects-hca": "esrun ./site-config/hca-dcp/dev/scripts/get-cellxgene-projects.ts" }, "dependencies": { - "@clevercanary/data-explorer-ui": "68.0.0", + "@clevercanary/data-explorer-ui": "70.0.0", "@emotion/react": "11.11.1", "@emotion/styled": "11.11.0", "@mdx-js/loader": "^3.0.1", diff --git a/explorer/pages/[entityListType]/[...params].tsx b/explorer/pages/[entityListType]/[...params].tsx index 6548f98a4..9b6e70ff0 100644 --- a/explorer/pages/[entityListType]/[...params].tsx +++ b/explorer/pages/[entityListType]/[...params].tsx @@ -129,7 +129,7 @@ export const getStaticPaths: GetStaticPaths = async () => { undefined ); - const data = await fetchAllEntities(path); + const data = await fetchAllEntities(path, undefined); const tabs = entityConfig.detail?.tabs.map((tab) => tab.route) ?? []; // process all hits diff --git a/explorer/pages/[entityListType]/index.tsx b/explorer/pages/[entityListType]/index.tsx index 524a4ab07..eb4dd7821 100644 --- a/explorer/pages/[entityListType]/index.tsx +++ b/explorer/pages/[entityListType]/index.tsx @@ -113,7 +113,7 @@ export const getStaticProps: GetStaticProps< } // Entities are client-side fetched from a local database seeded from a configured TSV. - props.data = await fetchAllEntities(entityListType); + props.data = await fetchAllEntities(entityListType, undefined); return { props, diff --git a/explorer/pages/apis/index.tsx b/explorer/pages/apis/index.tsx index 7825c8d1c..bc85bee92 100644 --- a/explorer/pages/apis/index.tsx +++ b/explorer/pages/apis/index.tsx @@ -1,4 +1,4 @@ -import { LAYOUT_STYLE } from "@clevercanary/data-explorer-ui/lib/components/Layout/components/ContentLayout/contentLayout"; +import { Main } from "@clevercanary/data-explorer-ui/lib/components/Layout/components/ContentLayout/components/Main/main"; import { ContentView } from "@clevercanary/data-explorer-ui/lib/views/ContentView/contentView"; import { GetStaticProps, InferGetStaticPropsType } from "next"; import { MDXRemote } from "next-mdx-remote"; @@ -14,10 +14,9 @@ export const getStaticProps: GetStaticProps = async () => { }; const Page = ({ - frontmatter, + layoutStyle, mdxSource, }: InferGetStaticPropsType): JSX.Element => { - const { layoutStyle } = frontmatter || {}; if (!mdxSource) return ; return ( } - layoutStyle={layoutStyle ?? LAYOUT_STYLE.CONTRAST} + layoutStyle={layoutStyle ?? undefined} /> ); }; +Page.Main = Main; + export default Page; diff --git a/explorer/pages/guides/index.tsx b/explorer/pages/guides/index.tsx index 9f2cf867c..2c5466fb2 100644 --- a/explorer/pages/guides/index.tsx +++ b/explorer/pages/guides/index.tsx @@ -1,4 +1,4 @@ -import { LAYOUT_STYLE } from "@clevercanary/data-explorer-ui/lib/components/Layout/components/ContentLayout/contentLayout"; +import { Main } from "@clevercanary/data-explorer-ui/lib/components/Layout/components/ContentLayout/components/Main/main"; import { ContentView } from "@clevercanary/data-explorer-ui/lib/views/ContentView/contentView"; import { GetStaticProps, InferGetStaticPropsType } from "next"; import { MDXRemote } from "next-mdx-remote"; @@ -14,10 +14,9 @@ export const getStaticProps: GetStaticProps = async () => { }; const Page = ({ - frontmatter, + layoutStyle, mdxSource, }: InferGetStaticPropsType): JSX.Element => { - const { layoutStyle } = frontmatter || {}; if (!mdxSource) return ; return ( } - layoutStyle={layoutStyle ?? LAYOUT_STYLE.CONTRAST} + layoutStyle={layoutStyle ?? undefined} /> ); }; +Page.Main = Main; + export default Page; diff --git a/explorer/pages/metadata/index.tsx b/explorer/pages/metadata/index.tsx index dfdb6a081..224885552 100644 --- a/explorer/pages/metadata/index.tsx +++ b/explorer/pages/metadata/index.tsx @@ -1,4 +1,4 @@ -import { LAYOUT_STYLE } from "@clevercanary/data-explorer-ui/lib/components/Layout/components/ContentLayout/contentLayout"; +import { Main } from "@clevercanary/data-explorer-ui/lib/components/Layout/components/ContentLayout/components/Main/main"; import { ContentView } from "@clevercanary/data-explorer-ui/lib/views/ContentView/contentView"; import { GetStaticProps, InferGetStaticPropsType } from "next"; import { MDXRemote } from "next-mdx-remote"; @@ -14,10 +14,9 @@ export const getStaticProps: GetStaticProps = async () => { }; const Page = ({ - frontmatter, + layoutStyle, mdxSource, }: InferGetStaticPropsType): JSX.Element => { - const { layoutStyle } = frontmatter || {}; if (!mdxSource) return ; return ( } - layoutStyle={layoutStyle ?? LAYOUT_STYLE.CONTRAST} + layoutStyle={layoutStyle ?? undefined} /> ); }; +Page.Main = Main; + export default Page; diff --git a/explorer/pages/privacy/index.tsx b/explorer/pages/privacy/index.tsx index 3c908da0e..0be4c25d9 100644 --- a/explorer/pages/privacy/index.tsx +++ b/explorer/pages/privacy/index.tsx @@ -1,4 +1,4 @@ -import { LAYOUT_STYLE } from "@clevercanary/data-explorer-ui/lib/components/Layout/components/ContentLayout/contentLayout"; +import { Main } from "@clevercanary/data-explorer-ui/lib/components/Layout/components/ContentLayout/components/Main/main"; import { ContentView } from "@clevercanary/data-explorer-ui/lib/views/ContentView/contentView"; import { GetStaticProps, InferGetStaticPropsType } from "next"; import { MDXRemote } from "next-mdx-remote"; @@ -14,10 +14,9 @@ export const getStaticProps: GetStaticProps = async () => { }; const Page = ({ - frontmatter, + layoutStyle, mdxSource, }: InferGetStaticPropsType): JSX.Element => { - const { layoutStyle } = frontmatter || {}; if (!mdxSource) return ; return ( } - layoutStyle={layoutStyle ?? LAYOUT_STYLE.CONTRAST} + layoutStyle={layoutStyle ?? undefined} /> ); }; +Page.Main = Main; + export default Page; diff --git a/explorer/pages/terms-of-service/index.tsx b/explorer/pages/terms-of-service/index.tsx index db7a37016..452695b15 100644 --- a/explorer/pages/terms-of-service/index.tsx +++ b/explorer/pages/terms-of-service/index.tsx @@ -1,4 +1,4 @@ -import { LAYOUT_STYLE } from "@clevercanary/data-explorer-ui/lib/components/Layout/components/ContentLayout/contentLayout"; +import { Main } from "@clevercanary/data-explorer-ui/lib/components/Layout/components/ContentLayout/components/Main/main"; import { ContentView } from "@clevercanary/data-explorer-ui/lib/views/ContentView/contentView"; import { GetStaticProps, InferGetStaticPropsType } from "next"; import { MDXRemote } from "next-mdx-remote"; @@ -14,10 +14,9 @@ export const getStaticProps: GetStaticProps = async () => { }; const Page = ({ - frontmatter, + layoutStyle, mdxSource, }: InferGetStaticPropsType): JSX.Element => { - const { layoutStyle } = frontmatter || {}; if (!mdxSource) return ; return ( } - layoutStyle={layoutStyle ?? LAYOUT_STYLE.CONTRAST} + layoutStyle={layoutStyle ?? undefined} /> ); }; +Page.Main = Main; + export default Page; diff --git a/explorer/site-config/hca-dcp/cc-ma-dev/authentication/authentication.ts b/explorer/site-config/hca-dcp/cc-ma-dev/authentication/authentication.ts deleted file mode 100644 index 12db93e6f..000000000 --- a/explorer/site-config/hca-dcp/cc-ma-dev/authentication/authentication.ts +++ /dev/null @@ -1,21 +0,0 @@ -import { AuthenticationConfig } from "@clevercanary/data-explorer-ui/lib/config/entities"; -import * as MDX from "../../../../app/components/common/MDXContent/hca-dcp"; - -export const authenticationConfig: AuthenticationConfig = { - googleGISAuthConfig: { - clientId: - "713613812354-ckf448r07ahvh8o1hjfj38tp91j9gpq8.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: MDX.RenderComponent({ Component: MDX.LoginTermsOfService }), - terraAuthConfig: { - termsOfServiceEndpoint: - "https://sam.dsde-dev.broadinstitute.org/register/user/v2/self/termsOfServiceDetails", - terraProfileEndpoint: - "https://sam.dsde-dev.broadinstitute.org/register/user/v1", - }, - text: MDX.RenderComponent({ Component: MDX.LoginText }), - title: "Sign in to your account", -}; diff --git a/explorer/site-config/hca-dcp/cc-ma-dev/authentication/authentication.tsx b/explorer/site-config/hca-dcp/cc-ma-dev/authentication/authentication.tsx new file mode 100644 index 000000000..13cdb2c19 --- /dev/null +++ b/explorer/site-config/hca-dcp/cc-ma-dev/authentication/authentication.tsx @@ -0,0 +1,28 @@ +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 { + return { + googleGISAuthConfig: { + clientId: + "713613812354-ckf448r07ahvh8o1hjfj38tp91j9gpq8.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: , + terraAuthConfig: { + termsOfServiceEndpoint: + "https://sam.dsde-dev.broadinstitute.org/register/user/v2/self/termsOfServiceDetails", + terraProfileEndpoint: + "https://sam.dsde-dev.broadinstitute.org/register/user/v1", + }, + text: , + title: "Sign in to your account", + }; +} diff --git a/explorer/site-config/hca-dcp/cc-ma-dev/config.ts b/explorer/site-config/hca-dcp/cc-ma-dev/config.ts index 401a833d2..904cc1191 100644 --- a/explorer/site-config/hca-dcp/cc-ma-dev/config.ts +++ b/explorer/site-config/hca-dcp/cc-ma-dev/config.ts @@ -1,6 +1,6 @@ import { SiteConfig } from "@clevercanary/data-explorer-ui/lib/config/entities"; import { makeConfig } from "../dev/config"; -import { authenticationConfig } from "./authentication/authentication"; +import { getAuthenticationConfig } from "./authentication/authentication"; import { getMAExportConfig } from "./export/export"; import { getMAEntitiesConfig } from "./index/projectsEntityConfig"; @@ -15,7 +15,7 @@ const config: SiteConfig = { ...makeManagedAccessConfig( makeConfig(BROWSER_URL, PORTAL_URL, DATA_URL, CATALOG) ), - authentication: authenticationConfig, + authentication: getAuthenticationConfig(PORTAL_URL), }; /** diff --git a/explorer/site-config/hca-dcp/ma-dev/config.ts b/explorer/site-config/hca-dcp/ma-dev/config.ts index d226087e6..ce4401e7f 100644 --- a/explorer/site-config/hca-dcp/ma-dev/config.ts +++ b/explorer/site-config/hca-dcp/ma-dev/config.ts @@ -1,5 +1,5 @@ import { SiteConfig } from "@clevercanary/data-explorer-ui/lib/config/entities"; -import { authenticationConfig } from "../cc-ma-dev/authentication/authentication"; +import { getAuthenticationConfig } from "../cc-ma-dev/authentication/authentication"; import { makeManagedAccessConfig } from "../cc-ma-dev/config"; import { makeConfig } from "../dev/config"; @@ -13,7 +13,7 @@ const config: SiteConfig = { ...makeManagedAccessConfig( makeConfig(BROWSER_URL, PORTAL_URL, DATA_URL, CATALOG) ), - authentication: authenticationConfig, + authentication: getAuthenticationConfig(PORTAL_URL), }; // Removing analytics from the config. diff --git a/explorer/site-config/hca-dcp/ma-prod/authentication/authentication.ts b/explorer/site-config/hca-dcp/ma-prod/authentication/authentication.ts deleted file mode 100644 index 75e1db116..000000000 --- a/explorer/site-config/hca-dcp/ma-prod/authentication/authentication.ts +++ /dev/null @@ -1,21 +0,0 @@ -import { AuthenticationConfig } from "@clevercanary/data-explorer-ui/lib/config/entities"; -import * as MDX from "../../../../app/components/common/MDXContent/hca-dcp"; - -export const authenticationConfig: AuthenticationConfig = { - 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: MDX.RenderComponent({ Component: MDX.LoginTermsOfService }), - terraAuthConfig: { - termsOfServiceEndpoint: - "https://sam.dsde-dev.broadinstitute.org/register/user/v2/self/termsOfServiceDetails", - terraProfileEndpoint: - "https://sam.dsde-dev.broadinstitute.org/register/user/v1", - }, - text: MDX.RenderComponent({ Component: MDX.LoginText }), - title: "Sign in to your account", -}; diff --git a/explorer/site-config/hca-dcp/ma-prod/authentication/authentication.tsx b/explorer/site-config/hca-dcp/ma-prod/authentication/authentication.tsx new file mode 100644 index 000000000..72856a57e --- /dev/null +++ b/explorer/site-config/hca-dcp/ma-prod/authentication/authentication.tsx @@ -0,0 +1,28 @@ +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 { + 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: , + terraAuthConfig: { + termsOfServiceEndpoint: + "https://sam.dsde-dev.broadinstitute.org/register/user/v2/self/termsOfServiceDetails", + terraProfileEndpoint: + "https://sam.dsde-dev.broadinstitute.org/register/user/v1", + }, + text: , + title: "Sign in to your account", + }; +} diff --git a/explorer/site-config/hca-dcp/ma-prod/config.ts b/explorer/site-config/hca-dcp/ma-prod/config.ts index cdafb8cac..9715c8b12 100644 --- a/explorer/site-config/hca-dcp/ma-prod/config.ts +++ b/explorer/site-config/hca-dcp/ma-prod/config.ts @@ -1,7 +1,7 @@ import { SiteConfig } from "@clevercanary/data-explorer-ui/lib/config/entities"; import { makeManagedAccessConfig } from "../cc-ma-dev/config"; import { makeConfig } from "../dev/config"; -import { authenticationConfig } from "./authentication/authentication"; +import { getAuthenticationConfig } from "./authentication/authentication"; // Template constants const BROWSER_URL = "https://ma-pilot.explore.data.humancellatlas.org"; @@ -10,7 +10,7 @@ const PORTAL_URL = "https://data.humancellatlas.org"; const config: SiteConfig = { ...makeManagedAccessConfig(makeConfig(BROWSER_URL, PORTAL_URL, DATA_URL)), - authentication: authenticationConfig, + authentication: getAuthenticationConfig(PORTAL_URL), }; // Update gtmAuth for the prod environment lookup.