include/SugarOAuthServer.php
\OAuthException
Package:
- Parent(s)
- \Exception
\SugarOAuthServer
Package: SugarCRM
Parameters
Sugar OAuth provider implementation
- Api
Properties
Methods
__construct(
$req_path
=
''
)
:
void
Create OAuth provider
Checks current request for OAuth valitidy
Name | Type | Description |
---|---|---|
$req_path |
accessToken(
)
:
string
Generate access token string - must have validated request token
Returns
Type | Description |
---|---|
string |
authorization(
)
:
mixed
Fetch authorization data from current token
Returns
Type | Description |
---|---|
mixed | Authorization data or null if none |
authorizedToken(
)
:
\OAuthToken | null
Fetch current token if it is authorized
Returns
Type | Description |
---|---|
\OAuthToken | null |
timestampNonceChecker(
\OAuthProvider $provider
)
:
void
Check timestamps & nonces
Parameters
Name | Type | Description |
---|---|---|
$provider | \OAuthProvider |