saml2-nameid
Parse name identifiers in a SAML assertion.
Install
$ npm install saml2-nameid
Usage
var nid = nameid.parse('<saml:NameID ...>user@mail.example.org</saml:NameID>');
// => { format: 'emailAddress', email: 'user@mail.example.org' }
Tests
$ npm install
$ npm test
Credits
License
Copyright (c) 2013 Jared Hanson <http://jaredhanson.net/>