1.0.4 • Published 9 years ago
oauth-wrap v1.0.4
oauth-wrap
Provides a function to retrieve OAuth WRAP security tokens.
oauth-wrap.getAuthHeader(url, uid, pwd, scope) ⇒ function
Get an OAuth WRAP header value from an STS.
Kind: static method of oauth-wrap
Returns: function - A promise.
The promise will resolve with the the OAuth WRAP security token
formatted as an http header value.
Any response with a status code that is not 2xx will result in a rejected promise.
Param | Type | Description |
---|---|---|
url | string | STS url. |
uid | string | WRAP name/username/user id. |
pwd | string | WRAP password. |
scope | string | WRAP scope. |