Laravel + Discourse together


(Khoa Nguyen) #1

I started a Discourse forum a few months ago.
Now I am developing my website with Laravel and have a big problem with user management.
I thought about use Discourse as User manager but there is no good documentation about this way. I created some topics to ask about it. @sam said that I only need to reverse the single sign on process. But I can’t make it happen.
Another solution is using my Laravel site as a single sign on provider but there will be complain from user about they have to reset their password (if they didn’t login with facebook/google…).
Is there anyone experience with this situation ?


(Sam Saffron) #2

Reverse, not revert, Discourse simply implements the other end of the SSO protocol


(Khoa Nguyen) #3

So when user click on login button on my website. They will be redirect to http://discourse.site/session/sso_provider right?
How can I generate ‘sso=PAYLOAD&sig=SIG’ part and where will discourse redirect user back to.


(Sam Saffron) #4

you can specify return url in the payload


(Khoa Nguyen) #5

Which var should I use ?


(Sam Saffron) #6

Have a look at the spec