SAML Metadata Parser
Installation
npm install saml-metadata-parser
Usage
Parser
The parser is responsible of converting different kind of inputs intoSAMLMetadata
objects.parser.fromFile(filePath)
Parameters: path to a
*.xml
fileReturns: an instance of
SAMLMetadata
objectparser.fromString(XMLString)
Parameters: string representation of a
*.xml
fileReturns: an instance of
SAMLMetadata
objectparser.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
objectSAMLMetadata
A SAMLMetadata object is responsible for storing all necessary metadata information. In addition, it can transform the metadata into different formats, such as passport-samladdSPConfiguration()
Parameters: object including service provider configurations
Returns: instance of the
SAMLMetadata
objectasPassportConfig
Parameters: None (the function is getter)
Returns: SAML configuration in passport-saml format