By: Ha Ro user 02 Jul 2020 at 9:32 a.m. CDT

1 Response
Ha Ro gravatar
Desired: User clicks the Discord + Gluu Authorization app. They authorize the app. If they have an existing account on the Gluu server, they are automatically logged into the Gluu server and then the app updates their discordUid custom user attribute and they are at their landing page. If the user's email is not already found to exist in the Gluu server, then they receive a "User not Found" type error, and no account is updated or created. What is happening: User clicks the Disord + Gluu Authorization. They authorize the app. It connects them with the Gluu server. If it finds an existing accoutn (by email) then their discordUid is updated, and all is well. BUT IF THE USER DOESN'T EXIST ON THE GLUU SERVER, THEN THE APP IS AUTOMATICALLY CREATING A NEW USER!. This is not desired. Is there an option or variable somewhere that I can set to prevent this passport-discord app from creating new users? We do NOT want this app to create new users ever. Thanks for any suggestions.

By Jose Gonzalez staff 03 Jul 2020 at 11:26 a.m. CDT

Jose Gonzalez gravatar
> IF THE USER DOESN'T EXIST ON THE GLUU SERVER, THEN THE APP IS AUTOMATICALLY CREATING A NEW USER! Yes, that's the default behavior. > Is there an option or variable somewhere that I can set to prevent this Such does not exist. It requires coding your own passport_social script, ie. custom development.