superagent-wsse

0.1.4 • Public • Published

Build Status npm version

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="..."

Package Sidebar

Install

npm i superagent-wsse

Weekly Downloads

3

Version

0.1.4

License

none

Last publish

Collaborators

  • devotis