PM-13103 - DuoRedirect - fix redirectToDuoFrameless logic to allow either duosecurity.com or duofederal.com as valid redirect urls. The existing logic failed b/c the construction of the previous check would reject all URLs. (#11363)
This commit is contained in:
parent
22a9e8788b
commit
c969f617a8
|
@ -54,8 +54,10 @@ function redirectToDuoFrameless(redirectUrl: string) {
|
|||
|
||||
if (
|
||||
validateUrl.protocol !== "https:" ||
|
||||
!validateUrl.hostname.endsWith("duosecurity.com") ||
|
||||
!validateUrl.hostname.endsWith("duofederal.com")
|
||||
!(
|
||||
validateUrl.hostname.endsWith("duosecurity.com") ||
|
||||
validateUrl.hostname.endsWith("duofederal.com")
|
||||
)
|
||||
) {
|
||||
throw new Error("Invalid redirect URL");
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue