SSO Overwrites Admin User


#1

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?


(Jeff Atwood) #2

This usually implies something is broken in your SSO implementation.


#3

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!


(Jeff Atwood) #4