Provides a function to retrieve OAuth WRAP security tokens.
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. |