Customized login

AI-generated summary

The discussion revolves around integrating a custom login system with Discourse via SSO (Single Sign-On), particularly for a Laravel-based site, videoamigo.com, which uses both Google and email/password authentication. thusar_Chhade asks if Discourse can use their existing user database instead of its own login system, especially when Discourse hosts the forum. pfaffman suggests using the standard Discourse SSO interface and references the wp-discourse plugin as a PHP example. thusar_Chhade clarifies whether customization is allowed under Discourse hosting, to which pfaffman confirms that SSO compatibility is feasible if the plan supports it. thusar_Chhade asks whether existing users (email/password) can access Discourse without re-registering. Stephen explains that SSO reuses existing sessions — users are redirected to the main site for authentication; if already logged in, they’re seamlessly signed into Discourse. Discourse does not directly use external passwords or emails — authentication is handled by the main site. thusar_Chhade asks if both Google and email/password users from videoamigo.com can access Discourse without re-registration. pfaffman replies that all users must have accounts on the main site, and the site must support Google logins — emphasizing that SSO means a single, unified authentication system.

We have a site in php(laravel framework) and want to use our own login/sign up method instead of using discourse login/signup- meaning we would like Discourse to use our existing website user database for authentication, how it can be achieved?, is it possible to do this kind of changes/customization when discourse host our forum? also are there any limitations on customization?

Search here for "SSO’ the wp-discourse plugin has an implementation in php.

ok, is it possible to do customization when discourse host our forum?

You should be able to make your site compatible with the standard discourse SSO interface, so if your plan supports SSO you’d be in good shape.

if we customize sso, For the existing our site users that uses email/password would they be able to use discourse?

The purpose of single sign-on is to re-use an existing sign-on session. If you implement SSO correctly your users would be redirected back to your website and if they’re already signed in they would be seamlessly signed in and redirected to the Discourse site. If they aren’t already signed in to your site then they would complete the sign-in process and then be redirected back to Discourse.

Discourse wouldn’t use the emails and passwords from your other database directly, SSO relies on your existing site handling things like authentication and email verification. It assumes you’re already doing those things with a goal of keeping things to one set of credentials and a single authentication challenge.

We have a site called videoamigo.com, half our registered users uses google to sign in and the other half uses email/password. Can all of them use discourse without re-registering?
If yes then how?

Your site would need to support Google logins and all discourse users would need to have accounts on your system.

The first S in SSO stands for Single.