Members
(static) defaultDomain
the default clover domain/url
- Source:
Methods
getAccessToken(callback)
Attempt to get the security token
This function attempts to extract an OAuth token from the
request/response.
It will create/set the userInfo object with associated keys.
Parameters:
Name | Type | Description |
---|---|---|
callback |
function |
- Source:
getOAuthURL(redirectopt) → {string}
Build the oauth url
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
redirect |
string |
<optional> |
the url to redirect to after authentication. Must be CORS acceptable. |
- Source:
Returns:
the oauth url.
- Type
- string
getRedirectUrl() → {string|null}
- Source:
Returns:
the redirect url or null if the existing window url should be used.
- Type
- string | null
getURLParams()
Get the url parameters from the proper url.
- Source:
getURLParamsFromURL()
Grab the parameters from the url search string.
- Source:
hasAccessToken() → {boolean}
Checks for access token without redirecting
- Source:
Returns:
true if the token has already been obtained
- Type
- boolean
parseTokenFromURLHash()
When running inside a browser, we grab the access token from the hash
- Source:
setRedirectUrl(redirectUrl)
Parameters:
Name | Type | Description |
---|---|---|
redirectUrl |
string | null | the redirect url or null if the existing window url should be used. |
- Source: