https://github.com/jhermsmeier/node-wsse-token
Web Services Security Extension (WSSE) Username Authentication Token
https://github.com/jhermsmeier/node-wsse-token
authentication soap wsse
Last synced: 7 months ago
JSON representation
Web Services Security Extension (WSSE) Username Authentication Token
- Host: GitHub
- URL: https://github.com/jhermsmeier/node-wsse-token
- Owner: jhermsmeier
- License: mit
- Created: 2016-07-22T16:36:37.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2019-07-11T16:41:50.000Z (over 6 years ago)
- Last Synced: 2025-01-08T07:05:20.821Z (about 1 year ago)
- Topics: authentication, soap, wsse
- Language: JavaScript
- Size: 14.6 KB
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# WSSE Token
[](https://npmjs.com/wsse-token)
[](https://npmjs.com/wsse-token)
[](https://npmjs.com/wsse-token)
[](https://travis-ci.org/jhermsmeier/node-wsse-token)
Web Services Security Extension (WSSE) Username Authentication Token
## Install via [npm](https://npmjs.com)
```sh
npm install --save wsse-token
```
## Usage
```js
var WSSEToken = require( 'wsse-token' )
```
```js
var token = new WSSEToken({
// Credentials
user: 'example',
password: 'secret',
// Byte-length and encoding of the nonce (optional)
nonceBytes: 16,
nonceEncoding: 'hex',
// Digest options (optional)
digestAlgorithm: 'sha1',
digestEncoding: 'hex',
digestBase64: true,
})
```
```js
token.toString()
```
```js
'UsernameToken Username="example", PasswordDigest="dc8b87d1786f37261ae2a5f7f0940fd650635d4a", Nonce="69dc375f3c5d6b24a45801962ad74812", Created="2019-07-11T16:40:43.125Z"'
```