superagent-wsse
v0.1.4
Published
A superagent plugin that generates headers for WSSE authentication.
Downloads
7
Maintainers
Readme
superagent-wsse
A superagent plugin that generates headers for WSSE authentication.
##Install## Install with npm
npm install superagent-wsse
##Usage##
var request = require('superagent');
var wsse = require('superagent-wsse');
var config = {
username: '123',
password: 'abc'
};
request
.get('http://example.com')
.use(wsse(config));
.end(function(res) {
console.log(res.text);
});
##About WSSE## WSSE is a family of open security specifications for web services, specifically SOAP web services. However, the Username Token algorithm is not SOAP-specific; it can be easily adapted to work within the HTTP authentication framework.
An HTTP request to a backend that uses WSSE authentication.
GET /api/things HTTP/1.1
Authorization: WSSE profile="UsernameToken"
X-WSSE: UsernameToken Username="...", PasswordDigest="...", Nonce="...", Created="..."