Skip to content

Commit 2107b74

Browse files
committed
Fix scim unit tests
1 parent 6cc14b4 commit 2107b74

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

enterprise/coderd/coderd.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,11 @@ func New(ctx context.Context, options *Options) (*API, error) {
142142

143143
if len(options.SCIMAPIKey) != 0 {
144144
api.AGPL.RootHandler.Route("/scim/v2", func(r chi.Router) {
145-
r.Use(api.scimEnabledMW)
145+
r.Use(
146+
api.scimEnabledMW,
147+
// TODO: Make a scim auth role.
148+
httpmw.SystemAuthCtx,
149+
)
146150
r.Post("/Users", api.scimPostUser)
147151
r.Route("/Users", func(r chi.Router) {
148152
r.Get("/", api.scimGetUsers)

0 commit comments

Comments
 (0)