1.0.4 • Published 9 years ago

oauth-wrap v1.0.4

Weekly downloads
1
License
ISC
Repository
github
Last release
9 years ago

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.

ParamTypeDescription
urlstringSTS url.
uidstringWRAP name/username/user id.
pwdstringWRAP password.
scopestringWRAP scope.