src/logic/Impersonator.php
public function buildAuthUrl($user_id)
    {
        return $this->getClient()->buildAuthUrl([
            'redirect_uri' => Url::toRoute(['/site/impersonate-auth', 'authclient' => $this->defaultAuthClient], true),
            'user_id' => $user_id,
        ]);
    }
public function buildAuthUrl($user_id)
    {
        return $this->getClient()->buildAuthUrl([
            'redirect_uri' => Url::toRoute(['/site/impersonate-auth', 'authclient' => $this->defaultAuthClient], true),
            'user_id' => $user_id,
        ]);
    }
public function buildAuthUrl ( $ user_id ) { return $ this -> getClient ( ) -> buildAuthUrl ( [ 'redirect_uri' => Url :: toRoute ( [ '/site/impersonate-auth' , 'authclient' => $ this -> defaultAuthClient ] , true ) , 'user_id' => $ user_id , ] ) ; }
Method should be called to generate URL for user redirect.

@param string $user_id
@return string
Method should be called to generate URL for user redirect .