Class: AuthorizationV1

AuthorizationV1

new AuthorizationV1(options)

Authorization Service

Generates temporary auth tokens for use in untrusted environments. Tokens expire after one hour.

Parameters:
Name Type Description
options Object
Properties
Name Type Attributes Description
username String
password String
url String <optional>

url of the service for which auth tokens are being generated

Source:

Methods

getToken(optionsopt, callback)

Get a percent-encoded authorization token based on resource query string param

Parameters:
Name Type Attributes Description
options Object <optional>
Properties
Name Type Attributes Description
url String <optional>

defaults to url supplied to constructor (if any)

callback function

called with a %-encoded token

Source: