EAuthException

<?xml version='1.0' encoding='UTF-8'?><errors><error code="415">Callback URL not approved for this client application. Approved callback URLs can be adjusted in your application settings</error></errors>

/var/www/planeta/protected/extensions/eauth/EOAuthService.php(80)

68     }
69 
70     /**
71      * Authenticate the user.
72      *
73      * @return boolean whether user was successfuly authenticated.
74      * @throws EAuthException
75      */
76     public function authenticate() {
77         $this->authenticated = $this->auth->authenticate();
78         $error = $this->auth->getError();
79         if (isset($error)) {
80             throw new EAuthException($error);
81         }
82 
83         // In case of successful authentication save access token and
84         // customer to session.
85         if ($this->authenticated) {
86             $this->saveCredentials();
87         }
88 
89         return $this->getIsAuthenticated();
90     }
91 
92     /**

Stack Trace

#0
+
 /var/www/planeta/protected/extensions/eauth/services/TwitterOAuthService.php(57): EOAuthService->authenticate()
52     public function authenticate() {
53         if (isset($_GET['denied'])) {
54             $this->cancel();
55         }
56 
57         return parent::authenticate();
58     }
59 }
#1
+
 /var/www/planeta/protected/controllers/SiteController.php(749): TwitterOAuthService->authenticate()
744             $service = Yii::app()->request->getQuery('service');
745             if($service){
746                 $authIdentity = Yii::app()->eauth->getIdentity($service);
747                 $authIdentity->redirectUrl = Yii::app()->user->returnUrl;
748                 $authIdentity->cancelUrl = $this->createAbsoluteUrl('site/login');
749                 if ($authIdentity->authenticate()) {
750                     $identity = new EAuthUserIdentity($authIdentity);
751                     // successful authentication
752                     //var_dump($identity->authenticate());die;
753                     if ($identity->authenticate()) {
754                         Yii::app()->user->login($identity);
#9
+
 /var/www/planeta/index.php(16): CApplication->run()
11 // remove the following line when in production mode
12  //defined('YII_DEBUG') or define('YII_DEBUG',true);
13      defined('YII_DEBUG') OR define('YII_DEBUG',true);
14      defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',0);
15 require_once($yii);
16 Yii::createWebApplication($config)->run();
2024-03-19 15:07:23 Apache/2.4.7 (Ubuntu) Yii Framework/1.1.16