fix token validation and error messages

This commit is contained in:
Livio Amstutz 2020-08-03 15:32:49 +02:00
parent 3663b9d1af
commit e46029eebd
7 changed files with 57 additions and 31 deletions

View file

@ -54,9 +54,9 @@ func TestValidateIssuer(t *testing.T) {
false,
},
{
"localhost with http ok",
"localhost with http fails",
args{"http://localhost:9999"},
false,
true,
},
}
for _, tt := range tests {
@ -78,7 +78,7 @@ func TestValidateIssuerDevLocalAllowed(t *testing.T) {
wantErr bool
}{
{
"localhost with http ok",
"localhost with http with dev ok",
args{"http://localhost:9999"},
false,
},