import OAuthConnectorBase from '@hoist/oauth-connector/src/oauth_connector.js'
OAuthConnectorBase
Implements:
Constructor Summary
Protected Constructor | ||
protected |
constructor(configuration: object) |
Method Summary
Public Methods | ||
public |
authorize(authorization: <AuthorizationStore>) authorize the oauth connection with existing parameters
|
|
public |
receiveBounce(authorization: AuthorizationStore): * |
Protected Constructors
protected constructor(configuration: object) source
Params:
Name | Type | Attribute | Description |
configuration | object | the configuration details for this connector |
|
configuration.consumerKey | string | the OAuth consumer key |
|
configuration.consumerSecret | string | the OAuth consumer secret |
|
configuration.requestTokenUri | string | the uri to use for request token calls |
|
configuration.accessTokenUri | string | the uri to use for access token calls |
|
configuration.authorizationUri | string | the uri to send users to authorise access |
|
configuration.oauthVersion | object |
|
the version of OAuth to use |
configuration.signingMethod | object |
|
the signing method to use |
Public Methods
public authorize(authorization: <AuthorizationStore>) source
authorize the oauth connection with existing parameters
Params:
Name | Type | Attribute | Description |
authorization | <AuthorizationStore> | the users authorization |
public receiveBounce(authorization: AuthorizationStore): * source
Params:
Name | Type | Attribute | Description |
authorization | AuthorizationStore | the users authorization |
Return:
* |