- πΊπΈUnited States mcanada
This looks like it made to the module, but it is not working for me. I can only login if I manually connect the accounts while logged in as a drupal user. I would like to be able to create a drupal user on the fly if the user is authenticated via oauth.
Any ideas?
@mcanada, Nothing was ever committed. Did you apply a patch, and which one? Are you using 7.x?
- πΊπΈUnited States mcanada
@solideogloria I did not appy any patches. What I mean is that I see the option on the settings (see picture attached) but it doesn't seem to work.
I would like to be able to create a drupal user on the fly
That's not what this option is supposed to do. This option never creates accounts. It claims an existing account that was already created programmatically or by some other login or process. If you want to create an account, you'll have to use a custom module to register an account in the code.
The option doesn't say "automatically connect non-existing users". It is for connecting OpenID users if there is an existing Drupal account that hasn't been bound to the OpenID user yet.
Otherwise, it could be that you need to download a patch or that have have some configuration that needs to be changed.
If you can, use xDebug to step through the code and see what isn't working. Or, share any error messages you see.
- πΊπΈUnited States mcanada
@solideogloria Thank you. That makes sense (I think).
I guess what I still don't understand is how the below works
It is for connecting OpenID users if there is an existing Drupal account that hasn't been bound to the OpenID user yet.
What is the criteria to match a Drupal account to the OpenID user? Name, email?
From your screenshot, you can see that it's by email address. At least, that's what it is when I use it. That's why is says that without this option, if the email address is already in use, the user won't be able to log in.
- πΊπΈUnited States mcanada
@solideogloria yes that is what it says, but it doesn't work. I logged in with my provider and created a d9 user with the same email address. It did not match the accounts.
You'll have to do some more digging then. I use it with Azure AD and it works. Does your provider have the UPN set to the email address?
The best thing you can do is get xDebug working and use breakpoints to find the source of the issue by stepping through the code.
-
sanduhrs β
committed 4733c0a3 on 7.x-1.x
Issue #3005824 by james.williams, Gold, odegard, dcam, sanduhrs:...
-
sanduhrs β
committed 4733c0a3 on 7.x-1.x
- Status changed to Fixed
about 1 year ago 5:52pm 20 October 2023 - π©πͺGermany sanduhrs πͺπΊ Heidelberg, Germany, Europe
Committed, thanks!
Automatically closed - issue fixed for 2 weeks with no activity.