zukanta
zukanta

Reputation: 2693

Implementing SSO on restful service

We have a whole bunch of clients that want us to start using their ADFS to allow their users into our web app using Single-Sign-On.

After reading up on WIF (which seemed to be the solution at first but is deprecated in VS 2013...), OWIN, oAuth, OpenID Connect, I'm completely confused as to the simplest way to implement SSO.

What is the best and simplest technology to use to implement SSO on an existing VS 2013 json restful service written in C#?

Ideally the technology would already be part of .NET.

Are there any code samples or tutorials out there for this scenario?

Upvotes: 1

Views: 1761

Answers (3)

ken lacoste
ken lacoste

Reputation: 894

SSO would mean its Active Directory driven, or direct to IIS machine.config authentication instead of a web.config, but also considering the "simplest technology" you've mentioned, then this must be a call for something simple yet you can transform into what you really desire.

With this, we can refer to token-based web services authentication. Here's a sample project from which I started and able to transform into something else. From here I think you can then change all authentications into AD or DB connect, or even both across your web services.

http://www.codeproject.com/Articles/9348/Web-Service-Authentication?fid=145460&df=90&mpp=25&prof=False&sort=Position&view=Normal&spc=Relaxed&fr=26#xx0xx

hopefully this would help.

Upvotes: 0

Rajesh Kanna
Rajesh Kanna

Reputation: 61

This can be implemented through WSO2 IS as Relying Party in ADFS. When we will implement this setup the outcome/Income claims will be main source for User Profile load to WSO2IS for authentication and pass the SAML Response to SP(End URL of your application).

Refer the below links to configure WSO2 IS as relying party for ADFS and WSO2 IS configuration too.

https://omindu.wordpress.com/2015/06/19/setting-ad-fs-3-0-as-federated-authenticator-in-wso2-identity-server/

Upvotes: 1

vibronet
vibronet

Reputation: 7394

assuming that you want to consume your service from native clients, I would recommend that you protect your service using Web API middleware (which was already supported via OWIN middleware in VS2013) and implement your clients using the ADAL library. For a post specifically on ADAL and ADFS, see this. For more details on the Web API side of the solution, see this. If you want to target a variety of client platforms, you can find a complete collection of samples (for Azure AD, but easy to modify for ADFS) here.

Upvotes: 1

Related Questions