concrete/src/Api/OAuth/Controller.php
private function determineStep(AuthorizationRequest $request)
    {
        // If the request doesn't have a user attached, we need to login still.
        if (!$request->getUser()) {
            return self::STEP_LOGIN;
        }

        /** @todo Track this authorization in the database and notify the user if the scope requirements change */
        if (!$request->isAuthorizationApproved()) {
            return self::STEP_AUTHORIZE_CLIENT;
        }

        return self::STEP_COMPLETE;
    }
private function determineStep(AuthorizationRequest $request)
    {
        // If the request doesn't have a user attached, we need to login still.
        if (!$request->getUser()) {
            return self::STEP_LOGIN;
        }

        /** @todo Track this authorization in the database and notify the user if the scope requirements change */
        if (!$request->isAuthorizationApproved()) {
            return self::STEP_AUTHORIZE_CLIENT;
        }

        return self::STEP_COMPLETE;
    }
private function determineStep ( AuthorizationRequest $ request ) { // If the request doesn't have a user attached, we need to login still. if ( ! $ request -> getUser ( ) ) { return self :: STEP_LOGIN ; } /** @todo Track this authorization in the database and notify the user if the scope requirements change */ if ( ! $ request -> isAuthorizationApproved ( ) ) { return self :: STEP_AUTHORIZE_CLIENT ; } return self :: STEP_COMPLETE ; }
Figure out what step we should be rendering based on the active authorization request
This method should handle verifying authorization and login

@param \League\OAuth2\Server\RequestTypes\AuthorizationRequest $request
@return int
Figure out what step we should be rendering based on the active authorization request This method should handle verifying authorization and login