8000 Enable OAuth2 provider management · coder/coder@676ae49 · GitHub
[go: up one dir, main page]

Skip to content

Commit 676ae49

Browse files
committed
Enable OAuth2 provider management
1 parent d42f230 commit 676ae49

File tree

2 files changed

+2
-11
lines changed

2 files changed

+2
-11
lines changed

enterprise/coderd/oauth2.go

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ import (
1414
"github.com/google/uuid"
1515
"golang.org/x/xerrors"
1616

17-
"github.com/coder/coder/v2/buildinfo"
1817
"github.com/coder/coder/v2/coderd/apikey"
1918
"github.com/coder/coder/v2/coderd/database"
2019
"github.com/coder/coder/v2/coderd/database/db2sdk"
@@ -29,13 +28,6 @@ import (
2928

3029
func (api *API) oAuth2ProviderMiddleware(next http.Handler) http.Handler {
3130
return http.HandlerFunc(func(rw http.ResponseWriter, r *http.Request) {
32-
if !buildinfo.IsDev() {
33-
httpapi.Write(r.Context(), rw, http.StatusForbidden, codersdk.Response{
34-
Message: "OAuth2 provider is under development.",
35-
})
36-
return
37-
}
38-
3931
api.entitlementsMu.RLock()
4032
entitled := api.entitlements.Features[codersdk.FeatureOAuth2Provider].Entitlement != codersdk.EntitlementNotEntitled
4133
api.entitlementsMu.RUnlock()

site/src/pages/DeploySettingsPage/Sidebar.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import Globe from "@mui/icons-material/PublicOutlined";
77
import HubOutlinedIcon from "@mui/icons-material/HubOutlined";
88
import VpnKeyOutlined from "@mui/icons-material/VpnKeyOutlined";
99
import MonitorHeartOutlined from "@mui/icons-material/MonitorHeartOutlined";
10-
// import Token from "@mui/icons-material/Token";
10+
import Token from "@mui/icons-material/Token";
1111
import { type FC } from "react";
1212
import { GitIcon } from "components/Icons/GitIcon";
1313
import {
@@ -33,10 +33,9 @@ export const Sidebar: FC = () => {
3333
<SidebarNavItem href="external-auth" icon={GitIcon}>
3434
External Authentication
3535
</SidebarNavItem>
36-
{/* Not exposing this yet since token exchange is not finished yet.
3736
<SidebarNavItem href="oauth2-provider/apps" icon={Token}>
3837
OAuth2 Applications
39-
</SidebarNavItem>*/}
38+
</SidebarNavItem>
4039
<SidebarNavItem href="network" icon={Globe}>
4140
Network
4241
</SidebarNavItem>

0 commit comments

Comments
 (0)
0