[#3689] relaxed the OAuth2 redirect url validation to allow any string value

Co-authored-by: sergeypdev <sergeypoznyak@protonmail.com>
This commit is contained in:
Gani Georgiev
2023-11-06 11:33:10 +02:00
parent 500615c1ee
commit ba7cf8bf8e
3 changed files with 17 additions and 2 deletions
+6
View File
@@ -49,6 +49,12 @@ func TestUserOauth2LoginValidate(t *testing.T) {
`{"provider":"gitlab","code":"123","codeVerifier":"123","redirectUrl":"https://example.com"}`,
[]string{},
},
{
"[#3689] any redirectUrl value",
"users",
`{"provider":"gitlab","code":"123","codeVerifier":"123","redirectUrl":"something"}`,
[]string{},
},
}
for _, s := range scenarios {