@@ -1366,6 +1366,7 @@ func TestUserOIDC(t *testing.T) {
1366
1366
1367
1367
client , resp := fake .AttemptLogin (t , owner , jwt.MapClaims {
1368
1368
"email" : user .Email ,
1369
+ "sub" : uuid .NewString (),
1369
1370
})
1370
1371
require .Equal (t , http .StatusOK , resp .StatusCode )
1371
1372
@@ -1404,6 +1405,7 @@ func TestUserOIDC(t *testing.T) {
1404
1405
1405
1406
claims := jwt.MapClaims {
1406
1407
"email" : userData .Email ,
1408
+ "sub" : uuid .NewString (),
1407
1409
}
1408
1410
var err error
1409
1411
user .HTTPClient .Jar , err = cookiejar .New (nil )
@@ -1474,6 +1476,7 @@ func TestUserOIDC(t *testing.T) {
1474
1476
1475
1477
claims := jwt.MapClaims {
1476
1478
"email" : userData .Email ,
1479
+ "sub" : uuid .NewString (),
1477
1480
}
1478
1481
user .HTTPClient .Jar , err = cookiejar .New (nil )
1479
1482
require .NoError (t , err )
@@ -1544,6 +1547,7 @@ func TestUserOIDC(t *testing.T) {
1544
1547
numLogs := len (auditor .AuditLogs ())
1545
1548
claims := jwt.MapClaims {
1546
1549
"email" : "jon@coder.com" ,
1550
+ "sub" : uuid .NewString (),
1547
1551
}
1548
1552
1549
1553
userClient , _ := fake .Login (t , client , claims )
@@ -1664,6 +1668,7 @@ func TestUserOIDC(t *testing.T) {
1664
1668
claims := jwt.MapClaims {
1665
1669
"email" : "user@example.com" ,
1666
1670
"email_verified" : true ,
1671
+ "sub" : uuid .NewString (),
1667
1672
}
1668
1673
1669
1674
// Perform the login
0 commit comments