Skip to content
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

Redirected user authenticated app requests cause user to be logged out and location is not updated #8012

Open
sync-by-unito bot opened this issue Aug 29, 2024 · 2 comments · May be fixed by #8011
Open
Assignees

Comments

@sync-by-unito
Copy link

sync-by-unito bot commented Aug 29, 2024

If a client app is up and running when the deployment model is changed, any subsequent app requests will receive a 308 redirect response to have the request resubmitted on the correct server. Since the redirect operation is being handled by the SDKs with the change for RCORE-2222, any user authenticated app requests that receive a redirect response will likely be resent to the server without the Authorization header when the request is re-sent to the new URL location, which will lead to the user being logged out since the request will fail.

When the user attempts to log back in again, the old server URL will still be used, which will allow the user to complete the login request, but the subsequent profile request will fail since the authorization header was stripped due to the redirect.

Update the operation of the App::log_in_with_credentials() function so it always forces a location update prior to issuing the login request to ensure the client app has the most up to date server URL prior to issuing any user authenticated requests.

Copy link
Author

sync-by-unito bot commented Aug 29, 2024

➤ PM Bot commented:

Jira ticket: RCORE-2253

Copy link
Author

sync-by-unito bot commented Sep 7, 2024

➤ michael-wb commented:

The fix for this was updated so the location is only requested when an authenticated request fails (prior to refreshing the access token) instead of requesting it for every log_in. The failing request will then be re-sent after the location and access token have been refreshed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant