@informaticon/soap-cookie

0.10.3 • Public • Published

Build Status

SOAP Cookie Authentication

Use cookies as a security method for node-soap

Install

npm install soap-cookie

Usage

var soap = require('soap'),
    Cookie = require('soap-cookie');

soap.createClient(WSDL, function(err, client) {
  client.login(USERNAME, PASSWORD, function(err, response) {

    // if login is successful
    client.setSecurity(new Cookie(client.lastResponseHeaders));

  });
});

Now subsequent SOAP calls will set the Cookie header and you'll be a happy chipmunk (except for the fact you have to deal with SOAP in the first place).

Readme

Keywords

none

Package Sidebar

Install

npm i @informaticon/soap-cookie

Weekly Downloads

2

Version

0.10.3

License

BSD-2-Clause

Unpacked Size

4.01 kB

Total Files

6

Last publish

Collaborators

  • michaelhugi
  • sebaz6r
  • haldc
  • informaticon.bot