-
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.
feat: add login config to ma-pilot dev, cc-dev, and prod environments (…
- Loading branch information
Fran McDade
authored and
Fran McDade
committed
Dec 12, 2023
1 parent
5d007dc
commit 2c6e77e
Showing
14 changed files
with
87 additions
and
11 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
10 changes: 10 additions & 0 deletions
10
explorer/app/components/common/MDXContent/hca-dcp/loginTermsOfService.mdx
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import { Link } from "@clevercanary/data-explorer-ui/lib/components/Links/components/Link/link"; | ||
|
||
<span> | ||
I have read and agree to{" "} | ||
<Link | ||
label="privacy notice" | ||
url="https://data.humancellatlas.dev.clevercanary.com/privacy" | ||
/>{" "} | ||
and terms of service | ||
</span> |
6 changes: 6 additions & 0 deletions
6
explorer/app/components/common/MDXContent/hca-dcp/loginText.mdx
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import { HelpIconButton } from "@clevercanary/data-explorer-ui/lib/components/common/Button/components/HelpIconButton/helpIconButton"; | ||
|
||
<span> | ||
<span>Please sign in to your Data Explorer account</span>{" "} | ||
<HelpIconButton url="https://data.humancellatlas.org/help" /> | ||
</span> |
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
21 changes: 21 additions & 0 deletions
21
explorer/site-config/hca-dcp/cc-ma-dev/authentication/authentication.ts
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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import { AuthenticationConfig } from "../../../../../../data-explorer/packages/data-explorer-ui/src/config/entities"; | ||
import * as MDX from "../../../../app/components/common/MDXContent/hca-dcp"; | ||
|
||
export const authenticationConfig: AuthenticationConfig = { | ||
googleGISAuthConfig: { | ||
clientId: | ||
"561542988117-9e04fhfrc9su130eb2ggea7bdppolkjq.apps.googleusercontent.com", // TODO(cc) update clientId. | ||
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", | ||
}; |
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,13 +1,20 @@ | ||
import { SiteConfig } from "@clevercanary/data-explorer-ui/lib/config/entities"; | ||
import { makeConfig } from "../dev/config"; | ||
import { authenticationConfig } from "./authentication/authentication"; | ||
|
||
// Template constants | ||
const PORTAL_URL = "https://data.humancellatlas.dev.clevercanary.com"; | ||
const BROWSER_URL = | ||
"https://ma-pilot.explore.data.humancellatlas.dev.clevercanary.com"; | ||
const CATALOG = "dcp3"; | ||
const DATA_URL = "https://service.dev.singlecell.gi.ucsc.edu"; | ||
const PORTAL_URL = "https://data.humancellatlas.dev.clevercanary.com"; | ||
|
||
const config: SiteConfig = { | ||
...makeConfig(BROWSER_URL, PORTAL_URL), | ||
...makeConfig(BROWSER_URL, PORTAL_URL, DATA_URL, CATALOG), | ||
authentication: authenticationConfig, | ||
}; | ||
|
||
const header = { ...config.layout.header }; | ||
config.layout.header = { ...header, authenticationEnabled: true }; | ||
|
||
export default config; |
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
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
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { | ||
ComponentConfig, | ||
ComponentsConfig, | ||
} from "@clevercanary/data-explorer-ui/lib/config/entities"; | ||
import * as C from "../../../../app/components"; | ||
|
||
export const subTitleHero: ComponentsConfig = [ | ||
{ | ||
component: C.TerraSetUpForm, | ||
} as ComponentConfig<typeof C.TerraSetUpForm>, | ||
]; |
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
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