Social auth OpenID Backend doesn't bind to existing Netbox accounts #16740
-
Hi, I've recently tried to set up a remote authentication backend in the form of KeyCloak Open ID Connect.
I've verified that Keycloak sends the right data back to Netbox using an OpenID Debugger, however, when authenticating, instead of binding the remote authentication to an existing Netbox account, that has the same username as the username that Keycloak provides, it creates a new account, even when The created account's username looks something like When I then manually change the user_id of the entry in social_auth_usersocialauth table in the database, and log in again, it does use the right account, but before then it just creates a brand new bogus account. Before trying out OpenID Connect, I used SAML, and that would properly bind to existing accounts with no issue. I've also tried deleting the SAML association before logging in with OpenID, figuring it might clash when there is already an existing association with a remote authentication backend, but that didn't help either. Is this intended behavior? Is this a bug? Should I direct this question to python-social-auth instead? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Having the same issue |
Beta Was this translation helpful? Give feedback.
-
Found a possible solution to this, apparently I haven't searched well enough for other threads about the same issue |
Beta Was this translation helpful? Give feedback.
Found a possible solution to this, apparently I haven't searched well enough for other threads about the same issue
python-social-auth/social-core#709 (comment)