File tree Expand file tree Collapse file tree 2 files changed +2
-11
lines changed
site/src/pages/DeploySettingsPage Expand file tree Collapse file tree 2 files changed +2
-11
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,6 @@ import (
14
14
"github.com/google/uuid"
15
15
"golang.org/x/xerrors"
16
16
17
- "github.com/coder/coder/v2/buildinfo"
18
17
"github.com/coder/coder/v2/coderd/apikey"
19
18
"github.com/coder/coder/v2/coderd/database"
20
19
"github.com/coder/coder/v2/coderd/database/db2sdk"
@@ -29,13 +28,6 @@ import (
29
28
30
29
func (api * API ) oAuth2ProviderMiddleware (next http.Handler ) http.Handler {
31
30
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
-
39
31
api .entitlementsMu .RLock ()
40
32
entitled := api .entitlements .Features [codersdk .FeatureOAuth2Provider ].Entitlement != codersdk .EntitlementNotEntitled
41
33
api .entitlementsMu .RUnlock ()
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ import Globe from "@mui/icons-material/PublicOutlined";
7
7
import HubOutlinedIcon from "@mui/icons-material/HubOutlined" ;
8
8
import VpnKeyOutlined from "@mui/icons-material/VpnKeyOutlined" ;
9
9
import MonitorHeartOutlined from "@mui/icons-material/MonitorHeartOutlined" ;
10
- // import Token from "@mui/icons-material/Token";
10
+ import Token from "@mui/icons-material/Token" ;
11
11
import { type FC } from "react" ;
12
12
import { GitIcon } from "components/Icons/GitIcon" ;
13
13
import {
@@ -33,10 +33,9 @@ export const Sidebar: FC = () => {
33
33
< SidebarNavItem href = "external-auth" icon = { GitIcon } >
34
34
External Authentication
35
35
</ SidebarNavItem >
36
- { /* Not exposing this yet since token exchange is not finished yet.
37
36
< SidebarNavItem href = "oauth2-provider/apps" icon = { Token } >
38
37
OAuth2 Applications
39
- </SidebarNavItem>*/ }
38
+ </ SidebarNavItem >
40
39
< SidebarNavItem href = "network" icon = { Globe } >
41
40
Network
42
41
</ SidebarNavItem >
You can’t perform that action at this time.
0 commit comments