protected function ServicesClientConnectionOAuthAuth::isAuthorized in Services Client 7.2
Same name and namespace in other branches
- 7 services_client_connection/modules/services_client_oauth/plugins/ServicesClientConnectionOAuthAuth.inc \ServicesClientConnectionOAuthAuth::isAuthorized()
Check if current plugin configuration has been authorized
1 call to ServicesClientConnectionOAuthAuth::isAuthorized()
- ServicesClientConnectionOAuthAuth::prepareRequest in services_client_connection/
modules/ services_client_oauth/ plugins/ ServicesClientConnectionOAuthAuth.inc - Implements prepareRequest().
File
- services_client_connection/
modules/ services_client_oauth/ plugins/ ServicesClientConnectionOAuthAuth.inc, line 107
Class
- ServicesClientConnectionOAuthAuth
- OAuth authentication support
Code
protected function isAuthorized() {
$keys = array(
'consumer_key',
'consumer_secret',
);
foreach ($keys as $key) {
if (!isset($this->config[$key]) || empty($this->config[$key])) {
return FALSE;
}
}
return TRUE;
}