Discourse Connect: كيف يمكن تطبيق تسجيل الدخول إلى Discourse مع قاعدة بيانات موجودة؟

Hi, I have a database with username and password and I want use DiscourseConnect for use existing users account on Discourse forum.

I don’t understand how retrieve the email and the password that user input info the login form of Discourse.

Into my sso endpoint I receive the query parameters: ?sso=XXX&sig=XXX

But i need to receive username and password for check into the db…

إعجاب واحد (1)

You will need to create a small web service that connects to that database, and when receives a redirect with those parameters prompts the user for username and password and then redirects the user back to Discourse.

إعجابَين (2)

Ok, this means, when discourse redirect to my web service i show a login page? I thinked discourse use his login, and redirect to me after user press on login button

إعجاب واحد (1)

Yes!

When using DiscourseConnect we will just redirect every user login to a service you own, so you have 100% control over the whole signup, login, password requirement, group membership, etc.

إعجابَين (2)

Ok! now I have undestod! :grinning:

إعجاب واحد (1)