Signed-off-by: justin-slowik <justin.slowik@thermofisher.com>
This commit is contained in:
justin-slowik
2020-07-08 16:25:06 -04:00
parent 9882ea453f
commit f91f294385
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -581,7 +581,7 @@ func validateRedirectURI(client storage.Client, redirectURI string) bool {
return false return false
} }
if redirectURI == redirectURIOOB || redirectURI == deviceCallbackURI{ if redirectURI == redirectURIOOB || redirectURI == deviceCallbackURI {
return true return true
} }
+2 -2
View File
@@ -1316,9 +1316,9 @@ func TestOAuth2DeviceFlow(t *testing.T) {
//Add the Clients to the test server //Add the Clients to the test server
client := storage.Client{ client := storage.Client{
ID: clientID, ID: clientID,
RedirectURIs: []string{deviceCallbackURI}, RedirectURIs: []string{deviceCallbackURI},
Public: true, Public: true,
} }
if err := s.storage.CreateClient(client); err != nil { if err := s.storage.CreateClient(client); err != nil {
t.Fatalf("failed to create client: %v", err) t.Fatalf("failed to create client: %v", err)