Skip to content

Commit 8f6265b

Browse files
committed
add httpmw.SystemAuthCtx to api.handleSubdomainApplications
1 parent 9aa7835 commit 8f6265b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

coderd/coderd.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -286,6 +286,8 @@ func New(options *Options) *API {
286286
RedirectToLogin: false,
287287
Optional: true,
288288
}),
289+
// TODO: We should remove this auth context after middleware.
290+
httpmw.SystemAuthCtx,
289291
httpmw.ExtractUserParam(api.Database, false),
290292
httpmw.ExtractWorkspaceAndAgentParam(api.Database),
291293
),
@@ -313,8 +315,7 @@ func New(options *Options) *API {
313315
RedirectToLogin: false,
314316
Optional: true,
315317
}),
316-
// TODO: The ExtractUserParam middleware requires an actor in the context.
317-
// As this is potentially a public endpoint, using system actor.
318+
// TODO: We should remove this auth context after middleware.
318319
httpmw.SystemAuthCtx,
319320
// Redirect to the login page if the user tries to open an app with
320321
// "me" as the username and they are not logged in.

0 commit comments

Comments
 (0)