protected static function _getRolesByAuth($params, array $options = array())
{
$roles = array('*' => '*');
foreach (array_keys(Auth::config()) as $key) {
if ($check = Auth::check($key, $params['request'], $options)) {
$roles[$key] = $check;
}
}
return $roles = array_filter($roles);
}