Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Best ADFS protocol support for node js

Tags:

node.js

adfs

I am completely new to ADFS. I need to access the ADFS server through node.js. I am searching for good reference notes, with implementation. And suggest me which protocol is best for requesting. Video tutorials are also heplful.

like image 901
God Avatar asked May 20 '13 13:05

God


2 Answers

I assume what you want is to authenticate users in AD (via ADFS), for your nodejs based web app. I'd recommend looking first at passport.js.

ADFS supports 2 protocols for web sites: WS-Federation or SAML-P. WS-Fed might be simpler. We open sourced the strategy for WS-Fed and SAML that we use in our product. A strategy is essentially a plug-in for passport.

That strategy should give you a good start.

like image 188
Eugenio Pace Avatar answered Oct 25 '22 18:10

Eugenio Pace


ADFS v3.0 exposes OAuth2. *

You could use Passport.js with OAuth support or Kong with OAuth support.

You could go the ADFS 2016 OpenId Connect route for ease of implementation (passport.js, only a feature request for kong).

If you're going the Azure route, there's one (passport-azure-ad by the Windows Azure team) specifically for that.

It includes OpenID Connect, WS-Federation, and SAML-P authentication and authorization.

Otherwise, versions disallowing etc., I recommend Eugenio Pace's answer.

like image 41
TylerY86 Avatar answered Oct 25 '22 17:10

TylerY86