fix token validation and error messages
This commit is contained in:
parent
3663b9d1af
commit
e46029eebd
7 changed files with 57 additions and 31 deletions
|
@ -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,
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue