protected function handleGET()
    {
        $serviceName = $this->getOAuthServiceName();
        if (!empty($serviceName)) {
            /** @type BaseOAuthService $service */
            $service = ServiceManager::getService($serviceName);
            $serviceGroup = $service->getServiceTypeInfo()->getGroup();

            if ($serviceGroup !== ServiceTypeGroups::OAUTH) {
                throw new BadRequestException('Invalid login service provided. Please use an OAuth service.');
            }

            return $service->handleLogin($this->request->getDriver());
        }

        return Session::getPublicInfo();
    }
protected function handleGET()
    {
        $serviceName = $this->getOAuthServiceName();
        if (!empty($serviceName)) {
            /** @type BaseOAuthService $service */
            $service = ServiceManager::getService($serviceName);
            $serviceGroup = $service->getServiceTypeInfo()->getGroup();

            if ($serviceGroup !== ServiceTypeGroups::OAUTH) {
                throw new BadRequestException('Invalid login service provided. Please use an OAuth service.');
            }

            return $service->handleLogin($this->request->getDriver());
        }

        return Session::getPublicInfo();
    }
protected function handleGET ( ) { $ serviceName = $ this -> getOAuthServiceName ( ) ; if ( ! empty ( $ serviceName ) ) { /** @type BaseOAuthService $service */ $ service = ServiceManager :: getService ( $ serviceName ) ; $ serviceGroup = $ service -> getServiceTypeInfo ( ) -> getGroup ( ) ; if ( $ serviceGroup !== ServiceTypeGroups :: OAUTH ) { throw new BadRequestException ( 'Invalid login service provided. Please use an OAuth service.' ) ; } return $ service -> handleLogin ( $ this -> request -> getDriver ( ) ) ; } return Session :: getPublicInfo ( ) ; }
Gets basic user session data and performs OAuth login redirect.

@return array
@throws \DreamFactory\Core\Exceptions\BadRequestException
@throws \DreamFactory\Core\Exceptions\UnauthorizedException
Gets basic user session data and performs OAuth login redirect .