Skip to content

Conversation

@wluyima
Copy link
Contributor

@wluyima wluyima commented Jul 11, 2025

With the current implementation of the oauth auto login feature that is handled by both front and back end logic, there is an annoying issue where the user temporarily sees the Odoo login page before they get redirected to the IDP's login page.

This PR modifies the oauth auto login addon so that the logic is implemented on the backend to resolve the issue.

* Moved all auto login  implementation to the backend

* OZ-357: Removed repeat check for auth error

* OZ-357: Refactored autologin code

* Added tests for autologin feature

* Cleaned up the tests for autologin feature

* Fixed manifest file formatting

* Added missing @http.route

* Fixed broken tests after adding @http.route

* Added small refactoring of the controller code
@OCA-git-bot
Copy link
Contributor

Hi @sbidoul,
some modules you are maintaining are being modified, check this out!

@github-actions
Copy link

github-actions bot commented Nov 9, 2025

There hasn't been any activity on this pull request in the past 4 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days.
If you want this PR to never become stale, please ask a PSC member to apply the "no stale" label.

@github-actions github-actions bot added the stale PR/Issue without recent activity, it'll be soon closed automatically. label Nov 9, 2025
@sbidoul
Copy link
Member

sbidoul commented Nov 9, 2025

See #717 (comment) for why this won't work in 17. In 18 it should be ok to make this a backend redirect again

@wluyima
Copy link
Contributor Author

wluyima commented Nov 10, 2025

We have been using this feature for a while and we have not experienced that issue but I will test and verify.

@github-actions github-actions bot removed the stale PR/Issue without recent activity, it'll be soon closed automatically. label Nov 16, 2025
@sbidoul sbidoul changed the title [17.0][IMP] Move all auto login logic to the backend [17.0][IMP] auth_oauth_autologin: Move all auto login logic to the backend Nov 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants