Skip to content

Commit c491e79

Browse files
committed
add test for non-string value in OIDC claims
1 parent 521a74d commit c491e79

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

coderd/userauth_test.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -503,6 +503,14 @@ func TestUserOIDC(t *testing.T) {
503503
},
504504
AllowSignups: true,
505505
StatusCode: http.StatusForbidden,
506+
}, {
507+
Name: "EmailNotAString",
508+
Claims: jwt.MapClaims{
509+
"email": 3.14159,
510+
"email_verified": false,
511+
},
512+
AllowSignups: true,
513+
StatusCode: http.StatusBadRequest,
506514
}, {
507515
Name: "EmailNotVerifiedIgnored",
508516
Claims: jwt.MapClaims{

0 commit comments

Comments
 (0)