include/SugarOAuthServer.php
\OAuthException
Package:
- Parent(s)
- \Exception
\SugarOAuthServer
Package: SugarCRM
Parameters
Sugar OAuth provider implementation
- Api
Properties
Methods

__construct(
$req_path
=
''
)
:
voidCreate OAuth provider
Checks current request for OAuth valitidy
| Name | Type | Description |
|---|---|---|
| $req_path |

accessToken(
)
:
stringGenerate access token string - must have validated request token
Returns
| Type | Description |
|---|---|
| string |

authorization(
)
:
mixedFetch authorization data from current token
Returns
| Type | Description |
|---|---|
| mixed | Authorization data or null if none |

authorizedToken(
)
:
\OAuthToken | nullFetch current token if it is authorized
Returns
| Type | Description |
|---|---|
| \OAuthToken | null |

timestampNonceChecker(
\OAuthProvider $provider
)
:
voidCheck timestamps & nonces
Parameters
| Name | Type | Description |
|---|---|---|
| $provider | \OAuthProvider |