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

"old API" only callable from backoffice when "remember me" cookie exists #1118

Open
adamlundrigan opened this issue Feb 19, 2025 · 0 comments

Comments

@adamlundrigan
Copy link
Contributor

adamlundrigan commented Feb 19, 2025

Summary

The backoffice UI API calls to "old API" endpoints (aka those protected by old_api_secured firewall) fail when user hasn't checked the remember me on this computer" box during sign-in.

Steps to reproduce

On the login page the "remember me on this computer" checkbox defaults to unchecked, so by default when a user signs in the BAPRM cookie isn't set.

If I leave this box unchecked when I sign in, those backoffice functions which use the "old API" no longer work - the requests fail with a 401 exception:

Image
(here I was trying to close the sidebar using the arrow in the bottom(ish) right)

If I check the "remember me on this computer" box when I sign in, the sidebar functionality works as expected - I can open/close the sidebar, add note widgets, etc.

Image
(here I was successful in closing the sidebar after signing out and signing back in with the "remember me" box checked)

This affects all backoffice functionality which uses /api/rest/... API calls not just the sidebar - eg: saving datagrid custom views, datagrid row actions

Actual Result
The "old API" requires a "remember me" token to function.

Expected Result
The "old API" should not depend on the "remember me" token for authentication, since not every authenticated user will have one.

Details about your environment

  • OroPlatform version: 6.1.0-rc3
  • PHP version: 8.4.4 (frankenphp)
  • Database (MySQL, PostgreSQL) version: PostgreSQL 17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant