npm

Ready to take your JavaScript development to the next level? Meet npm Enterprise - the ultimate in enterprise JavaScript.Learn more »

wstrust-client

0.0.1 • Public • Published

WS-Trust Client 0.1

Simple WS-Trust Client for Node.js

Installation

$ npm install wstrust-client

Example Code

 
var trustClient = require('wstrust-client');
 
trustClient.requestSecurityToken({
    scope: 'https://yourapp.com',
    username: 'Your Username Here',
    password: 'Your Password Here',
    endpoint: 'https://your-ws-trust-endpoint-address-here'
}, function (rstr) {
 
    // Access the token and enjoy it!
    var rawToken = rstr.token;
 
    console.log(rawToken);
 
}, function (error) {
    
    // Error Callback
    console.log(error)
 
}
 

License (MIT)

Copyright (c) 2012, Leandro Boffi.

**

Author: Leandro Boffi

Keywords

none

install

npm i wstrust-client

Downloadsweekly downloads

42

version

0.0.1

license

none

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability