-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix/asub 8551 apple signin redirect #2184
Changes from 6 commits
ce5efd7
01db3dd
fd2fcc9
78a93e1
78a34d6
c005f59
d3379fc
0eb7efa
3b4842c
2239833
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,6 +21,7 @@ function useSocialSignIn(redirectURL, isOIDC, socialSignOnIn, onError = () => {} | |
loginByOIDC(); | ||
} else { | ||
const validatedURL = validateURL(redirectURL); | ||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @accbjt Can you please revert this new line |
||
window.location = validatedURL; | ||
} | ||
} catch (e) { | ||
|
@@ -51,7 +52,8 @@ function useSocialSignIn(redirectURL, isOIDC, socialSignOnIn, onError = () => {} | |
loginByOIDC(); | ||
} else { | ||
const validatedURL = validateURL(redirectURL); | ||
window.location = validatedURL; | ||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @accbjt Same here |
||
window.location.hred = validatedURL; | ||
} | ||
}), | ||
auto_select: true, | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -43,6 +43,7 @@ function AccountManagement({ customFields }) { | |
const checkLoggedInStatus = () => | ||
Identity.isLoggedIn().then((isLoggedIn) => { | ||
if (!isLoggedIn) { | ||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @accbjt same here |
||
window.location = redirectURL; | ||
return; | ||
} | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -90,6 +90,7 @@ const Login = ({ customFields }) => { | |
loginByOIDC(); | ||
} else { | ||
const validatedURL = validateURL(loginRedirect); | ||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @accbjt same here |
||
window.location = validatedURL; | ||
} | ||
}) | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,6 +13,7 @@ const validateURL = (url) => { | |
return url; | ||
} | ||
|
||
sessionStorage.setItem("ArcXP_redirectUrl", "/"); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hi @accbjt, why are you setting ArcXP_redirectUrl to "/". Sounds like the value we are setting here should depend on the custom fields or the page in which the user is. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @LauraPinilla The original |
||
return "/"; | ||
}; | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@accbjt I think we can define a
let newRedirectUrl
and move this line out from the if-else statement.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@LauraPinilla Okay, I made those updates.