Closed (fixed)
Project:
OpenID Connect / OAuth client
Version:
3.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
15 Apr 2024 at 20:32 UTC
Updated:
10 Mar 2025 at 19:49 UTC
Jump to comment: Most recent
Comments
Comment #2
solideogloria commentedComment #5
solideogloria commentedComment #6
solideogloria commentedI tested the MR using the new option and it works. It's a good solution, too.
Navigating to /user/login?showcore=1 just shows a button to log in with the configured provider. The Drupal core user login form is not displayed.
Comment #7
liquidcms commentedI think the logic behind this is incorrect. As the title suggests, there should be an option to "disable the use of showcore". This isn't the same as forcing the login page with the OIC button. It should simply stop showcore in the url from doing anything.
It is difficult to develop against possible future enhancements; but I'd say it is safe to assume the Autologin feature #3011413: Autologin when one client enabled will eventually be merged; and this patch does not take that into account. The admin UI for this shouldn't be "force replace" or anything to do with those options; it should simply be a separate checkbox for "Disable showcore" (or even better, it should be "Enable showcore" and have this security hole disabled by default).
With that feature disabled and autologin enabled; then going to user/login?anything-including-showcore would simply attempt to access whichever auth client is being used.
Patch on the way.
Comment #8
solideogloria commentedI use the Autologin feature as well, and the solution from the MR is working.
Comment #9
solideogloria commentedHowever, I do agree that a separate checkbox is probably the better solution.
Comment #10
liquidcms commented@solideogloria, from what you describe in #6, that is not auto login. Auto login would not go to that page, it would just connect to your Auth provider. What do you see with auto login enabled?
Also, the name of the option (force replace) does sound like what you've described, which is not auto login.
We have done up a patch but would conflict with the auto login patch, so we've merged both functions into 1 patch. Just need to do some testing and will post here.
Comment #11
solideogloria commentedcomposer.json
composer.patches.json
Comment #15
pfrillingI created a new MR with the changes from MR #108 and added functional testing. I think this looks good if someone wants to review and RTBC.
Comment #18
solideogloria commentedLooks good to me. I've been using the changes for quite a while.
Comment #20
pfrillingThanks everyone!