Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
gitpod-io
GitHub Repository: gitpod-io/gitpod
Path: blob/main/components/dashboard/src/teams/TeamAuthentication.tsx
2501 views
1
/**
2
* Copyright (c) 2021 Gitpod GmbH. All rights reserved.
3
* Licensed under the GNU Affero General Public License (AGPL).
4
* See License.AGPL.txt in the project root for license information.
5
*/
6
7
import { isGitpodIo } from "../utils";
8
import React from "react";
9
import { Heading2, Heading3, Subheading } from "../components/typography/headings";
10
import { OrgSettingsPage } from "./OrgSettingsPage";
11
import { ConfigurationSettingsField } from "../repositories/detail/ConfigurationSettingsField";
12
import { useDocumentTitle } from "../hooks/use-document-title";
13
import { LinkButton } from "@podkit/buttons/LinkButton";
14
import { CheckCircle2Icon } from "lucide-react";
15
import { Redirect } from "react-router";
16
import PillLabel from "../components/PillLabel";
17
18
export default function TeamPoliciesPage() {
19
useDocumentTitle("Organization Settings - Authentication");
20
21
if (!isGitpodIo) {
22
return <Redirect to="/settings" />;
23
}
24
25
return (
26
<>
27
<OrgSettingsPage>
28
<div className="space-y-8">
29
<div>
30
<Heading2 className="flex items-center gap-4">
31
Authentication
32
<PillLabel type="warn">Enterprise</PillLabel>
33
</Heading2>
34
<Subheading className="mt-1">
35
Manage users through single sign-on and privately authenticate with source control and image
36
registries.
37
</Subheading>
38
</div>
39
40
<SSOCard />
41
<PrivateImageRegistryCard />
42
<PrivateSourceControlAccess />
43
</div>
44
</OrgSettingsPage>
45
</>
46
);
47
}
48
49
const SSOCard = () => {
50
return (
51
<ConfigurationSettingsField className="bg-pk-surface-secondary">
52
<Heading3>Single sign-on (SSO)</Heading3>
53
<Subheading className="mt-1">More control over workspace access for your organization</Subheading>
54
55
<div className="mt-8 flex flex-col space-y-2">
56
<div className="flex flex-row gap-2 items-center text-pk-content-secondary">
57
<CheckCircle2Icon size={20} className="text-pk-content-primary" />
58
Includes support for Google, Okta, AWS Cognito and others
59
</div>
60
<div className="flex flex-row gap-2 items-center text-pk-content-secondary">
61
<CheckCircle2Icon size={20} className="text-pk-content-primary" />
62
Instantly revoke access and off-board users from Gitpod
63
</div>
64
</div>
65
66
<LinkButton
67
href="https://www.gitpod.io/contact/enterprise-self-serve"
68
isExternalUrl={true}
69
className="mt-8"
70
>
71
Request Free Trial
72
</LinkButton>
73
</ConfigurationSettingsField>
74
);
75
};
76
77
const PrivateImageRegistryCard = () => {
78
return (
79
<ConfigurationSettingsField className="bg-pk-surface-secondary">
80
<Heading3>Private container image registry</Heading3>
81
<Subheading className="mt-1">Provide secure access to private image registries such as ECR</Subheading>
82
83
<LinkButton
84
variant="secondary"
85
className="mt-8 border border-pk-content-tertiary text-pk-content-primary bg-pk-surface-primary"
86
href="https://www.gitpod.io/docs/enterprise/setup-gitpod/use-private-ecr-repos-for-workspace-images"
87
isExternalUrl={true}
88
>
89
Documentation
90
</LinkButton>
91
</ConfigurationSettingsField>
92
);
93
};
94
95
const PrivateSourceControlAccess = () => {
96
return (
97
<ConfigurationSettingsField className="bg-pk-surface-secondary">
98
<Heading3>Private source control access</Heading3>
99
<Subheading className="mt-1">
100
Connect to your private source control like GitHub, Bitbucket and GitLab
101
</Subheading>
102
103
<LinkButton
104
variant="secondary"
105
className="mt-8 border border-pk-content-tertiary text-pk-content-primary bg-pk-surface-primary"
106
href="https://www.gitpod.io/docs/enterprise/setup-gitpod/scm-integration"
107
isExternalUrl={true}
108
>
109
Documentation
110
</LinkButton>
111
</ConfigurationSettingsField>
112
);
113
};
114
115