-
Notifications
You must be signed in to change notification settings - Fork 3.2k
[HOLD for payment 2024-03-14] [$500] Back button in SAML page doesn't work to go back to log in page #36673
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
Comments
Triggered auto assignment to @joekaufmanexpensify ( |
I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors. |
I can reproduce this. The back button doesn't work. However, the swiping-back gesture does work for me. The back button should work if it's there though. 2024-02-16_10-12-45.mp4 |
@NikkiWines I see ou led the SAML implementation. Thoughts on if this needs to be internal? |
Should be fine to be external! No back end code should need to change for this to be fixed. |
Cool cool. TY! |
Job added to Upwork: https://www.upwork.com/jobs/~013f786b4a5d463af8 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @allroundexperts ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.Back button in SAML page doesn't work to go back to log in page. What is the root cause of that problem?The cause is here: What changes do you think we should make in order to solve the problem?here:
we should go back instead of trying to navigate to the home route. <HeaderWithBackButton
title=""
onBackButtonPress={() => {
Session.clearSignInData();
Navigation.goBack();
}}
/> What alternative solutions did you explore? (Optional)N/A |
@rayane-djouah Why does navigation |
ProposalPlease re-state the problem that we are trying to solve in this issue.Users are unable to navigate back to the login screen from the SAML SSO page. This issue persists even after restarting the app, requiring a complete reinstallation to reset the login state. What is the root cause of that problem?Took a lot of setup in order to reproduce the error. Managed to do so on real iPhone XS as well. The root issue, is caused by the fact that SAML isn't properly configured to work correctly. When a user logs in via SAML, they are taken to the This page is incorrectly receiving props which results in the webview having the incorrect url structure and broken SAML page The reason you cannot go back to the sign in page and you are stuck even after an app reload, is because no matter what, anytime you come back to the app, it will always be set to this URL:
Which, I am seeing turn out as That must mean that
What changes do you think we should make in order to solve the problem?Potential Backend Issue Main question on this is, should the backend be returning To fix on the frontend: update
Original:
|
Still reviewing proposals |
Why is it being lost?
@brandonhenry Can you elaborate on this point? How is the corrupt session data linked with the re-render needed for showing the home page? |
Proposals still in review |
Finally got android and ios builds running locally. Digging deeper here |
So found the culprit @allroundexperts - its definitely that we need to do: Navigation.goBack(ROUTES.SAML_SIGN_IN); Screen.Recording.2024-02-21.at.5.56.54.PM.mov.navigate is not working properly in this instance. I placed logs at the place of redirection and it never reaches that point. Still digging on why it's failing. Will update soon I did notice that the The log indicates that the credentials are being cleared at some point during the SAML sign-in process. Here are a few key points from the log that might help explain why the credentials and login information are being lost:
![]() |
Took a fair amount of digging, but finally figured this one out. We don't need to use Updated ProposalPlease re-state the problem that we are trying to solve in this issue.Users are unable to navigate back to the login screen from the SAML SSO page. This issue persists even after restarting the app, requiring a complete reinstallation to reset the login state. What is the root cause of that problem?The issue is caused by the Navigation setup of the App/src/libs/Navigation/linkTo.ts Line 206 in c425c34
When you press the back button, What changes do you think we should make in order to solve the problem?Instead of early returning there, and breaking navigation - we should instead check if the
This fixes navigation. The main reason I think navigation is setup like this is because it needs to work the same for PublicScreens and AuthScreens so the navigate function works the same for both. However, I don't think we have any actionForBottomTabNavigator to calculate when not signed in (going from SAML back to the homepage). This was causing some properties to not be available in the navigation route, thus resulting in Specifically App/src/libs/Navigation/linkTo.ts Line 80 in c425c34
|
Proposals still in review |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
Thanks for the updated proposal @brandonhenry. I still don't understand why the action has a payload of |
@joekaufmanexpensify I think it would be good if we can maybe raise the bounty to get more proposals. |
Not overdue |
PR #37618 ready for review! |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.48-0 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue: If no regressions arise, payment will be issued on 2024-03-14. 🎊 For reference, here are some details about the assignees on this issue:
|
BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:
|
@allroundexperts can you complete BZ so we can prep to issue payment? |
Reviewer checklist
|
@joekaufmanexpensify 👋 Any blockers from completing the payment here ? |
Nope. I will complete it today. |
Checklist is complete. All set to issue payment. We need to pay:
|
@ikevin127 $500 sent and contract ended! |
@allroundexperts could you please request $500 via NewDot and confirm here once complete? |
All done. Feel free to close! |
TY! |
$500 approved for @allroundexperts based on summary. |
Uh oh!
There was an error while loading. Please reload this page.
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Found when validating PR: #35294
Version Number: 1.4.42-1
Reproducible in staging?: Y
Reproducible in production?: Y
Logs: https://stackoverflow.com/c/expensify/questions/4856
Expensify/Expensify Issue URL:
Issue reported by: Applause-Internal team
Slack conversation:
Action Performed:
account
in login field
Expected Result:
Back button should work & user able to go back to login screen
Actual Result:
Back button in SAML page doesn't work to go back to log in page. Even killing the app does not work. User has to uninstall & reinstall app to get the login screen
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Bug6381350_1708040833878.az_recorder_20240215_175134.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: