@@ -304,7 +304,7 @@ func TestJWTManager_BlockedNamespaces(t *testing.T) {
304
304
jwtManager := auth .NewJWTManager (cfg )
305
305
306
306
claims := auth.JWTClaims {
307
- AuthMethod : model . AuthMethodGitHubAT ,
307
+ AuthMethod : auth . MethodGitHubAT ,
308
308
AuthMethodSubject : "spammer" ,
309
309
Permissions : []auth.Permission {
310
310
{
@@ -329,7 +329,7 @@ func TestJWTManager_BlockedNamespaces(t *testing.T) {
329
329
jwtManager := auth .NewJWTManager (cfg )
330
330
331
331
claims := auth.JWTClaims {
332
- AuthMethod : model . AuthMethodGitHubAT ,
332
+ AuthMethod : auth . MethodGitHubAT ,
333
333
AuthMethodSubject : "gooduser" ,
334
334
Permissions : []auth.Permission {
335
335
{
@@ -353,7 +353,7 @@ func TestJWTManager_BlockedNamespaces(t *testing.T) {
353
353
jwtManager := auth .NewJWTManager (cfg )
354
354
355
355
claims := auth.JWTClaims {
356
- AuthMethod : model . AuthMethodGitHubAT ,
356
+ AuthMethod : auth . MethodGitHubAT ,
357
357
AuthMethodSubject : "user" ,
358
358
Permissions : []auth.Permission {
359
359
{
@@ -382,7 +382,7 @@ func TestJWTManager_BlockedNamespaces(t *testing.T) {
382
382
jwtManager := auth .NewJWTManager (cfg )
383
383
384
384
claims := auth.JWTClaims {
385
- AuthMethod : model . AuthMethodNone ,
385
+ AuthMethod : auth . MethodNone ,
386
386
AuthMethodSubject : "admin" ,
387
387
Permissions : []auth.Permission {
388
388
{
0 commit comments