If the user is already connected we just return and instance of provider adapter,
ELSE, try to authenticate and authorize the user with the provider.
$params is generally an array with required info in order for this provider and HybridAuth to work,
like :
hauth_return_to: URL to call back after authentication is done
openid_identifier: The OpenID identity provider identifier
google_service: can be "Users" for Google user accounts service or "Apps" for Google hosted Apps
public static authenticate ( string $providerId, array $params = null ) | ||
$providerId | string | ID of the provider |
$params | array | Params |