Discourse forum sso login with external site

(Techno Webtest) #1

I’m using sso to login discourse via an external site. What I want is to login in my discourse forum automatically when I login at my external site
Is there any api for automatically login into discourse forum from main site ?
I am using this ->link: https://discourse.com/session/sso_login?sso=payload&sig=sig
when I redirect from main site like this -> window.open(link,’_blank’);
its working fine but I need api for this login

(Sam Saffron) #2

The API is simply to redirect the user to Discourse and then back to your site using a whitelisted return_url.

3 Likes
(Techno Webtest) #3

Hey @sam
Please let me know where we need to set return_url