public function getConnectionUrl($scopes = [])
    {
        $connectionUrl = $this->provider->getAuthorizationUrl(['scope' => $scopes]);
        $_SESSION[self::STATE] = $this->provider->getState();

        return $connectionUrl;
    }
public function getConnectionUrl($scopes = [])
    {
        $connectionUrl = $this->provider->getAuthorizationUrl(['scope' => $scopes]);
        $_SESSION[self::STATE] = $this->provider->getState();

        return $connectionUrl;
    }
public function getConnectionUrl ( $ scopes = [ ] ) { $ connectionUrl = $ this -> provider -> getAuthorizationUrl ( [ 'scope' => $ scopes ] ) ; $ _SESSION [ self :: STATE ] = $ this -> provider -> getState ( ) ; return $ connectionUrl ; }
Retrieve the URL that generates the authorization code

@param  array $scopes  Scopes to include in the authorization URL
@return string
Retrieve the URL that generates the authorization code