public function RestfulTokenAuthenticationBase::publicFieldsInfo in RESTful 7
Overrides RestfulEntityBase::publicFieldsInfo().
Overrides RestfulEntityBase::publicFieldsInfo
See also
http://tools.ietf.org/html/rfc6750#section-4
File
- modules/
restful_token_auth/ includes/ RestfulTokenAuthenticationBase.php, line 15 - Contains \RestfulTokenAuthenticationBase
Class
- RestfulTokenAuthenticationBase
- @file Contains \RestfulTokenAuthenticationBase
Code
public function publicFieldsInfo() {
$public_fields['access_token'] = array(
'property' => 'token',
);
$public_fields['type'] = array(
'callback' => array(
'\\RestfulManager::echoMessage',
array(
'Bearer',
),
),
);
$public_fields['expires_in'] = array(
'property' => 'expire',
'process_callbacks' => array(
'static::intervalInSeconds',
),
);
$public_fields['refresh_token'] = array(
'property' => 'refresh_token_reference',
'process_callbacks' => array(
'static::getTokenFromEntity',
),
);
return $public_fields;
}