-
Notifications
You must be signed in to change notification settings - Fork 54
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
Logout issue on iOS with RN deferred login #281
Comments
Hi @Ruslan-Mz, I tried the template with iOS 15.0 & 15.5 but I'm not able reproduce, is there something else I should try to recreate what you're seeing? |
Hello @bbirman! Thank you for attempt to reproduce, it gave me more information. I've tried to re-create the app and still was receiving the issue. But when I've changed to totally default login through test.salesforce.com it started to work. When using default I see in logs: But when using custom (community) URL, then after One difference I see is that test.salesforce.com doest have .well-known/auth-configuration that is requested before oauth navigation: But on community we have it. Maybe some auth configuration parameters are the cause of this? Investigating more. |
Haven't yet found the root cause. But auth-config has nothing to do with it - checked by removing the code to fetch it. Again confirming that the difference between first login after app restart or rebuild is that on first login those steps are called: But on following login attempts identity is retrieved immediately after navigating to path=/services/oauth2/authorize Investigating more. |
Addition research on current topic: |
thanks for all the info! I'll investigate more and update here |
We have found a workaround, similar to the one described here - https://salesforce.stackexchange.com/questions/24556/why-salesforce-com-logs-the-user-in-automatically-after-his-her-session-has-been |
Having a same kind of issue where Logging out from oauth.logout() redirect to connected app permission requested page not to logging page. This only happens on IOS.
The issue was fixed after doing the workaround as mentioned in #281 (comment) Will this be fixed in next sdk releases? |
Thanks @Ruslan-Mz, we will look at bringing that fix into the SDK. |
Any progress on this issue? I am experiencing the same thing. |
Hello!
It seem's there's a bug on iOS similar to this one: #72
Description:
App created using temlpate https://github.com/forcedotcom/SalesforceMobileSDK-Templates/tree/dev/ReactNativeDeferredTemplate
Using iOS 15
User's log's in and logs out normally
But then when user presses "Login" he is logged in automatically without requesting credentials. This prevents multi-user setup and also is a security threat.
If the app is restarted, then credentials are asked correctly
But if I try to reset ReactNative context programatically (with DevSettings.reload() in debug mode or with RNRestart.Restart()) then the issue is still there.
I've briefly checked the iOS code for logout, but for now havent found any suspicious places.
Is this a known issue? Or maybe there's a workaround for this?
(investigating more, will update if found out something).
The text was updated successfully, but these errors were encountered: