SSO login from main site

(Techno Webtest) #1

Hello, I am setting up sso authentication for Discourse.
When the user logs in on the main site, I would like he also be logged into the forum.
At the end of the procedure, the user stays on the main site.
Some one help me and save my life

(Jeff Atwood) #2

Did you search for SSO #howto ?

(Techno Webtest) #3

No I didn’t
I need api for discourse forum automatically login when user login on main site without redirect on discourse forum
Is there any api for the same?

(Jay Pfaffman) #4

Yes. You should try searching “sso #howto” as a first step. If you are unable to search and have a budget, you can post in #marketplace.

If you did search as recommended you might find

2 Likes
(Techno Webtest) #5

Actually I already search in -> Official Single-Sign-On for Discourse (sso)
But there is no any api for the same

(Jay Pfaffman) #6

That page describes the SSO api. If you want a code example, you might look at the source of the wp-discourse WordPress plugin.

1 Like