Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

Rev 6749 | Rev 6821 | Ir a la última revisión | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 6749 Rev 6803
Línea 48... Línea 48...
48
use LeadersLinked\Authentication\AuthImpersonateAdapter;
48
use LeadersLinked\Authentication\AuthImpersonateAdapter;
49
use LeadersLinked\Model\Network;
49
use LeadersLinked\Model\Network;
50
use LeadersLinked\Cache\CacheInterface;;
50
use LeadersLinked\Cache\CacheInterface;;
Línea 51... Línea -...
51
 
-
 
52
 
51
 
53
 
52
 
54
class AuthController extends AbstractActionController
53
class AuthController extends AbstractActionController
55
{
54
{
56
    /**
55
    /**
Línea 453... Línea 452...
453
        
452
        
Línea 454... Línea 453...
454
    }
453
    }
455
    
454
    
456
    public function facebookAction()
455
    public function facebookAction()
457
    {
456
    {
458
        /*
457
 
459
        $request = $this->getRequest();
458
        $request = $this->getRequest();
460
        if($request->isGet()) {
459
        if($request->isGet()) {
461
            
460
/*
462
            try {
461
          //  try {
463
                $app_id = $this->config['leaderslinked.facebook.app_id'];
462
                $app_id = $this->config['leaderslinked.facebook.app_id'];
464
                $app_password = $this->config['leaderslinked.facebook.app_password'];
463
                $app_password = $this->config['leaderslinked.facebook.app_password'];
465
                $app_graph_version = $this->config['leaderslinked.facebook.app_graph_version'];
464
                $app_graph_version = $this->config['leaderslinked.facebook.app_graph_version'];
Línea -... Línea 465...
-
 
465
                //$app_url_auth = $this->config['leaderslinked.facebook.app_url_auth'];
-
 
466
                //$redirect_url = $this->config['leaderslinked.facebook.app_redirect_url'];
-
 
467
                
-
 
468
                [facebook]
-
 
469
                app_id=343770226993130
-
 
470
                app_password=028ee729090fd591e50a17a786666c12
-
 
471
                app_graph_version=v17
Línea -... Línea 472...
-
 
472
                app_redirect_url=https://leaderslinked.com/oauth/facebook
-
 
473
                
-
 
474
                https://www.facebook.com/v17.0/dialog/oauth?client_id=343770226993130&redirect_uri= https://dev.leaderslinked.com/oauth/facebook&state=AE12345678
-
 
475
                
-
 
476
 
466
                //$app_url_auth = $this->config['leaderslinked.facebook.app_url_auth'];
477
                $s = 'https://www.facebook.com/v17.0/dialog/oauth' . 
467
                //$redirect_url = $this->config['leaderslinked.facebook.app_redirect_url'];
478
                    '?client_id=' 
468
                
479
                    '&redirect_uri={"https://www.domain.com/login"}
469
                
480
                    '&state={"{st=state123abc,ds=123456789}"}
470
 
481
 
Línea 488... Línea 499...
488
            } catch (\Throwable $e) {
499
            } catch (\Throwable $e) {
489
                return new JsonModel([
500
                return new JsonModel([
490
                    'success' => false,
501
                    'success' => false,
491
                    'data' =>  'ERROR_WE_COULD_NOT_CONNECT_TO_FACEBOOK'
502
                    'data' =>  'ERROR_WE_COULD_NOT_CONNECT_TO_FACEBOOK'
492
                ]);
503
                ]);
493
            }
504
            }*/
Línea 494... Línea 505...
494
            
505
            
495
        } else {
506
        } else {
496
            return new JsonModel([
507
            return new JsonModel([
497
                'success' => false,
508
                'success' => false,
498
                'data' => 'ERROR_METHOD_NOT_ALLOWED'
509
                'data' => 'ERROR_METHOD_NOT_ALLOWED'
499
            ]);
510
            ]);
500
        }*/
511
        }
Línea 501... Línea 512...
501
    }
512
    }
502
    
513
    
503
    public function twitterAction()
514
    public function twitterAction()