1.4.0 • Published 5 months ago

saml-metadata v1.4.0

Weekly downloads
-
License
ISC
Repository
github
Last release
5 months ago

saml-metadata

CI

This is a streaming SAML metadata parser. It is sutable for parsing large metadata files (multiple MBs) containing multiple IDPs and SPs, which are commonly used by federations. The file is parsed and processed as it is being downloaded, which means the original document is never saved. The projects only dependency is the SAX parsing library, saxes.

The data structure fairly closely follows the schema. All standard constructs referenced in the interoperable SAML are supported (the extensions are currently missing, however they might be added in the future).

Security considerations:

  • The well-formedness of the XML document is ensured by the underlaying SAX parser.
  • The location of elements is always (transitively) verified from the root.
  • The order of the elements is not verified.
  • The XML signatures are not verified, it is assumed that the document is downloaded directly from a well-known location and the connection is protected using TSL/SSL.
  • The elements that are not converted into the data structure are ignored.

Usage

import https from 'node:https';
import {parser} from 'saml-metadata';

https.get(address, (stream) => {
  void (async () => {
     const metadata = await parser(stream);
  })();
});

The types are in types.ts.

License

ISC

1.4.0

5 months ago

1.3.1

5 months ago

1.3.0

5 months ago

1.2.0

1 year ago

1.1.2

1 year ago

1.1.1

1 year ago

1.1.0

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago