node package manager
Painless code sharing. npm Orgs help your team discover, share, and reuse code. Create a free org »

saml2-nameid

saml2-nameid

Build Coverage Dependencies

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

The MIT License

Copyright (c) 2013 Jared Hanson <http://jaredhanson.net/>