Skip to content

RYFN/wstrust-client

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WS-Trust Client 0.0.1

Simple WS-Trust (1.3) 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.

About

Simple WSTrust client for Node.js

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%