concrete/src/Api/OAuth/Controller.php
private function createLoginView(array $data)
    {
        // Get the client that we're rendering login for
        $consentType = $this->getConsentType($this->getAuthorizationRequest());

        switch ($consentType) {
            case Client::CONSENT_NONE:
                // Don't set anything if the consent type is "none"
                break;

            case Client::CONSENT_SIMPLE:
            default:
                $data['consentView'] = new View('/oauth/consent/simple');
                break;
        }

        // Start building a view:
        $contents = new View('/oauth/authorize');
        $contents->setViewTheme('concrete');
        $contents->setViewTemplate('background_image.php');
        $contents->addScopeItems($data);

        return $contents;
    }
private function createLoginView(array $data)
    {
        // Get the client that we're rendering login for
        $consentType = $this->getConsentType($this->getAuthorizationRequest());

        switch ($consentType) {
            case Client::CONSENT_NONE:
                // Don't set anything if the consent type is "none"
                break;

            case Client::CONSENT_SIMPLE:
            default:
                $data['consentView'] = new View('/oauth/consent/simple');
                break;
        }

        // Start building a view:
        $contents = new View('/oauth/authorize');
        $contents->setViewTheme('concrete');
        $contents->setViewTemplate('background_image.php');
        $contents->addScopeItems($data);

        return $contents;
    }
private function createLoginView ( array $ data ) { // Get the client that we're rendering login for $ consentType = $ this -> getConsentType ( $ this -> getAuthorizationRequest ( ) ) ; switch ( $ consentType ) { case Client :: CONSENT_NONE : // Don't set anything if the consent type is "none" break ; case Client :: CONSENT_SIMPLE : default : $ data [ 'consentView' ] = new View ( '/oauth/consent/simple' ) ; break ; } // Start building a view: $ contents = new View ( '/oauth/authorize' ) ; $ contents -> setViewTheme ( 'concrete' ) ; $ contents -> setViewTemplate ( 'background_image.php' ) ; $ contents -> addScopeItems ( $ data ) ; return $ contents ; }
Create a new authorize login view with the given data in scope

@param array $data

@return \Concrete\Core\View\View

@throws \League\OAuth2\Server\Exception\OAuthServerException
Create a new authorize login view with the given data in scope