Want to integrate SSO(Single Sign On) between my application and Forum

  • 409 Views
  • Last Post 10 April 2018
abhi posted this 28 August 2017

Hello All

I am having one application that uses MongoDB.

I want to do SSO(Single Sign On) using ADFs between My application and forum. Is this possible?

 

Anything related to SSO is there?

Thanks & Regards,  

Abhi

Order By: Standard | Newest | Votes
blandyuk posted this 29 August 2017

Are both websites using the same domain? If so, you could add a root-domain based cookie to share across to all sub-domain websites.

YodasMyDad posted this 12 September 2017

Please see the WIKI and see if that helps you

https://github.com/YodasMyDad/mvcforum/wiki/Single-Sign-On

Nestor Geslani posted this 27 March 2018

Hello.

When I click on link above for Single Sign on information, it takes me to the home page.
Is the information still available?

Thanks,

Nestor

YodasMyDad posted this 27 March 2018

Sign on is now done with pipelines. 

https://github.com/YodasMyDad/mvcforum/blob/master/MvcForum.Plugins/Pipelines/User/UserLoginPipe.cs

Just replace the pipeline with your own one, you just need to implement 

IPipe<IPipelineProcess<MembershipUser>>

And then swap it out in the config to point to yours

https://github.com/YodasMyDad/mvcforum/blob/master/MVCForum.Website/App_Data/forum.config#L202

Making sure that your DLL is put in the

/App_Data/Plugins

Folder, as this is where it looks for pipelines.

  • Liked by
  • Nestor Geslani
Nestor Geslani posted this 31 March 2018

Thank you for taking the time to answer my question.
What I have is a asp net core application as my main site using Identity for authentication.
MVSForum is installed as a virtual app under virtual directory /forum
They currently work independently.
Using the pipeline mechanism you just described, is it possible for the main
site to inject the SignInManager for example into the user pipeline you described so I may interrogate if it is authenticated
there already? Both sides have facebook social login working.

You have a wonderful product and I have been researching and trying my best, to figure out how to integrate it;
Appreciate your help.
If what i described is not possible, might there be another solution I can explore?

Nestor

 

YodasMyDad posted this 10 April 2018

Have a look at the pipelines, you can pass extra objects as ExtendedData and then pull it out via a key in your pipeline or just use DI? As DI will work for each pipeline.

Close