public function newAuthorizeRequest($type, $typeId, $authParams = [])
    {
        if ($this->authorizationServer->hasGrantType('authorization_code')) {
            /** @var AuthCodeGrant $authGrant */
            $authGrant = $this->authorizationServer->getGrantType('authorization_code');
            return $authGrant->newAuthorizeRequest($type, $typeId, $authParams);
        }

        return '';
    }
public function newAuthorizeRequest($type, $typeId, $authParams = [])
    {
        if ($this->authorizationServer->hasGrantType('authorization_code')) {
            /** @var AuthCodeGrant $authGrant */
            $authGrant = $this->authorizationServer->getGrantType('authorization_code');
            return $authGrant->newAuthorizeRequest($type, $typeId, $authParams);
        }

        return '';
    }
public function newAuthorizeRequest ( $ type , $ typeId , $ authParams = [ ] ) { if ( $ this -> authorizationServer -> hasGrantType ( 'authorization_code' ) ) { /** @var AuthCodeGrant $authGrant */ $ authGrant = $ this -> authorizationServer -> getGrantType ( 'authorization_code' ) ; return $ authGrant -> newAuthorizeRequest ( $ type , $ typeId , $ authParams ) ; } return '' ; }
Parse a new authorize request

@param string $type The session owner's type
@param string $typeId The session owner's ID
@param array $authParams The authorize request $_GET parameters

@return string
Parse a new authorize request