SocialiteProviders\Manager\OAuth1\AbstractProvider::redirect PHP Method

redirect() public method

Redirect the user to the authentication page for the provider.
public redirect ( ) : RedirectResponse
return Symfony\Component\HttpFoundation\RedirectResponse
    public function redirect()
    {
        if (!$this->isStateless()) {
            $this->request->getSession()->set('oauth.temp', $temp = $this->server->getTemporaryCredentials());
        } else {
            $temp = $this->server->getTemporaryCredentials();
            $this->request->session()->set('oauth_temp', serialize($temp));
        }
        return new RedirectResponse($this->server->getAuthorizationUrl($temp));
    }