Skip to content

compwright/passport-saml-example

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PassportJS SAML authentication example

Description

An example to demonstrate the use of the Auth0's passport-wsfed-saml2 authentication strategy for PassportJS with configuration loaded from metadata by passport-saml-metadata.

Tested with Active Directory Federation Services (ADFS).

Configuration

This project supports .env files for setting up the environment. See .env-sample for a template.

If you are authenticating with ADFS, you will need to configure a relying party trust within ADFS for this project. This project will generate a metadata file at https://host:port/FederationMetadata/2007-06/FederationMetadata.xml. If the project is accessible from the ADFS server, it should import the metadata seamlessly by entering the URL (https://host:port) into the relying party trust setup wizard.

Usage

$ npm install
$ npm start

Debugging

Set the DEBUG environment variable:

$ DEBUG=* npm start

Authors

"Jonathon Hill" "Gerard Braad"
@compwright @gbraad

License

Licensed under the MIT license

Note

Based on PassportJS-Authentication by Danial Khosravi

About

PassportJS SAML 2.0 ADFS reference implementation

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 83.5%
  • HTML 16.5%