Skip to content

jacobmarshall-etc/Saml-Metadata-Parser

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SAML Metadata Parser

Installation

npm install saml-metadata-parser

Usage

Parser

The parser is responsible of converting different kind of inputs into SAMLMetadata objects.

parser.fromFile(filePath)

Parameters: path to a *.xml file

Returns: an instance of SAMLMetadata object

parser.fromString(XMLString)

Parameters: string representation of a *.xml file

Returns: an instance of SAMLMetadata object

parser.fromURL(URL)

Parameters: URL which resolves a metadata.xml (e.g. https://adfs.example.com/FederationMetadata/2007-06/FederationMetadata.xml)

Returns: a Promise, which resolves an instance of SAMLMetadata object

SAMLMetadata

A SAMLMetadata object is responsible for storing all necessary metadata information. In addition, it can transform the metadata into different formats, such as passport-saml

addSPConfiguration()

Parameters: object including service provider configurations

Returns: instance of the SAMLMetadata object

asPassportConfig

Parameters: None (the function is getter)

Returns: SAML configuration in passport-saml format

Contributors

License

The MIT License

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%