SSO Overwrites Admin User

Hey All,

Got SSO setup and running. It works great when using my first user account (admin user) on the site. It logs in as that user as expected. However, when I try logging in (through SSO) as another user (different ID, Username, Email), it overwrites (or deletes) the previous user with the new one.

Same thing happens if I log out of that user and log in with the previous one. Still only one user account on Discourse.

Any clue what could be going on there?

This usually implies something is broken in your SSO implementation.

1 Like

Yep good call. I just got it figured out and logged back here to post a reply. The external_id was getting passed an object (database ID). I converted it to a String and all worked as expected.

Thanks!

3 Likes