Skip to content

Commit 545883e

Browse files
committed
Fix security definition for first user route
1 parent 3f70b78 commit 545883e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

coderd/coderdtest/swaggerparser.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,8 @@ func assertPathParametersDefined(t *testing.T, comment SwaggerComment) {
297297
func assertSecurityDefined(t *testing.T, comment SwaggerComment) {
298298
if comment.router == "/updatecheck" ||
299299
comment.router == "/buildinfo" ||
300-
comment.router == "/" {
300+
comment.router == "/" ||
301+
comment.router == "/users/first" {
301302
return // endpoints do not require authorization
302303
}
303304
assert.Equal(t, "CoderSessionToken", comment.security, "@Security must be equal CoderSessionToken")

0 commit comments

Comments
 (0)