@@ -242,7 +242,7 @@ func TestCreateToken(t *testing.T) {
242242 assert .EqualError (t , err , "invalid tokenConfig: the 'audience' claim is required for the scitokens2 profile, but it could not be found" )
243243
244244 // Test that additional claims can be passed into the token
245- tokenConfig = TokenConfig {tokenProfile : WlcgProfile {}, audience : []string {"foo" }, Subject : "bar" , Lifetime : time .Minute * 10 , Claims : map [string ]string {"foo" : "bar" }}
245+ tokenConfig = TokenConfig {tokenProfile : WlcgProfile {}, audience : []string {"foo" }, Subject : "bar" , Lifetime : time .Minute * 10 , Claims : map [string ]string {"foo" : "bar" }}
246246 token , err := tokenConfig .CreateToken ()
247247 require .NoError (t , err )
248248 jwt , err := jwt .ParseString (token , jwt .WithVerify (false ))
@@ -253,7 +253,7 @@ func TestCreateToken(t *testing.T) {
253253
254254 // Test providing issuer via claim
255255 viper .Set ("IssuerUrl" , "" )
256- tokenConfig = TokenConfig {tokenProfile : WlcgProfile {}, audience : []string {"foo" }, Subject : "bar" , Issuer : "https://localhost:9999" , Lifetime : time .Minute * 10 }
256+ tokenConfig = TokenConfig {tokenProfile : WlcgProfile {}, audience : []string {"foo" }, Subject : "bar" , Issuer : "https://localhost:9999" , Lifetime : time .Minute * 10 }
257257 _ , err = tokenConfig .CreateToken ()
258258 assert .NoError (t , err )
259259
0 commit comments