Extends
Methods
-
Authorizes the given waiting code.
Name Type Description codestring The code to authorize.
-
Awaits the authorization of a given code before a token will be issued and returns a promise object for the token.
Name Type Description codestring The authorization code.
userstring The user name associated with the new token.
sourceAddressstring The source address for which the new token will be valid.
Returns:
Type Description Promise.<string> A promise for the new token. -
Issues a new authentication token valid for the given user and source address.
Name Type Description userstring The user name associated with the new token.
sourceAddressstring The source address for which the new token will be valid.
Returns:
Type Description string The new token. -
Revokes the given token. It will no longer be valid for authentication.
Name Type Description tokenstring The token to revoke.