Twitter * google-plus => GooglePlus * * @return string */ public function getId(); /** * Returns an UTF-8 name for the provider. * * @return string */ public function getName(); /** * Redirects to the actual authentication provider * * @return RedirectResponse */ public function authenticate(); /** * Logout from the provider, removes the token if possible * * @throws RuntimeException In case logout fails. */ public function logout(); /** * This method is called on provider callback, whenever the auth was * successful or failure. * * @param Request $request * * @throws NotAuthenticatedException In case the authentication failed. */ public function onCallback(Request $request); /** * Returns the identity * * @return Identity * * @throws NotAuthenticatedException In case the provider is not connected */ public function getIdentity(); /** * Returns a Token * * @return Token * * @throws NotAuthenticatedException In case the provider is not connected */ public function getToken(); /** * Get an URI representing the provider * * @return string */ public function getIconURI(); /** * Returns an array of templates related to the provided Identity * * @param Identity $identity * * @return array */ public function getTemplates(Identity $identity); /** * Creates a provider * * @param UrlGenerator $generator * @param SessionInterface $session * @param array $options */ public static function create(UrlGenerator $generator, SessionInterface $session, array $options); }