Block/Adminhtml/Config/Developer/Connect.php
public function getAuthoriseUrl()
    {
        $clientId = $this->_scopeConfig->getValue(
            \Dotdigitalgroup\Email\Helper\Config::XML_PATH_CONNECTOR_CLIENT_ID
        );

        //callback uri if not set custom
        $redirectUri = $this->helper->getRedirectUri();
        $redirectUri .= 'connector/email/callback';

        $adminUser = $this->auth->getUser();

        //query params
        $params = [
            'redirect_uri' => $redirectUri,
            'scope' => 'Account',
            'state' => $adminUser->getId(),
            'response_type' => 'code',
        ];

        $authorizeBaseUrl = $this->configHelper
            ->getAuthorizeLink();
        $url = $authorizeBaseUrl . http_build_query($params)
            . '&client_id=' . $clientId;

        return $url;
    }
public function getAuthoriseUrl()
    {
        $clientId = $this->_scopeConfig->getValue(
            \Dotdigitalgroup\Email\Helper\Config::XML_PATH_CONNECTOR_CLIENT_ID
        );

        //callback uri if not set custom
        $redirectUri = $this->helper->getRedirectUri();
        $redirectUri .= 'connector/email/callback';

        $adminUser = $this->auth->getUser();

        //query params
        $params = [
            'redirect_uri' => $redirectUri,
            'scope' => 'Account',
            'state' => $adminUser->getId(),
            'response_type' => 'code',
        ];

        $authorizeBaseUrl = $this->configHelper
            ->getAuthorizeLink();
        $url = $authorizeBaseUrl . http_build_query($params)
            . '&client_id=' . $clientId;

        return $url;
    }
public function getAuthoriseUrl ( ) { $ clientId = $ this -> _scopeConfig -> getValue ( \ Dotdigitalgroup \ Email \ Helper \ Config :: XML_PATH_CONNECTOR_CLIENT_ID ) ; //callback uri if not set custom $ redirectUri = $ this -> helper -> getRedirectUri ( ) ; $ redirectUri .= 'connector/email/callback' ; $ adminUser = $ this -> auth -> getUser ( ) ; //query params $ params = [ 'redirect_uri' => $ redirectUri , 'scope' => 'Account' , 'state' => $ adminUser -> getId ( ) , 'response_type' => 'code' , ] ; $ authorizeBaseUrl = $ this -> configHelper -> getAuthorizeLink ( ) ; $ url = $ authorizeBaseUrl . http_build_query ( $ params ) . '&client_id=' . $ clientId ; return $ url ; }
Autorisation url for OAUTH.

@return string
Autorisation url for OAUTH .