Exemplo n.º 1
0
 public function beforeFilter()
 {
     parent::beforeFilter();
     // For CakePHP 2.1 and up
     $this->Auth->allow();
     $this->facebookAppId = Configure::read('facebook-cred.appId');
     $this->facebookSecret = Configure::read('facebook-cred.secret');
     $this->facebook_return_url = Router::url(array('plugin' => 'UserManagement', 'controller' => 'Social', 'action' => 'connectFacebook'), true);
     $this->googleClientId = Configure::read('google-cred.clientID');
     $this->googleClientSecret = Configure::read('google-cred.clientSecret');
     $this->googleDeveloperKey = Configure::read('google-cred.developerKey');
     $this->google_return_url = Router::url(array('plugin' => 'UserManagement', 'controller' => 'Social', 'action' => 'googleLogin'), true);
     $this->twitterConsumerKey = Configure::read('twitter-cred.consumer_key');
     $this->twitterConsumerSecret = Configure::read('twitter-cred.consumer_secret');
     $this->twitter_return_url = Router::url(array('plugin' => 'UserManagement', 'controller' => 'Social', 'action' => 'callback'), true);
     $this->linkedinApiKey = Configure::read('linkedin-cred.API_KEY');
     $this->linkedinApiSecret = Configure::read('linkedin-cred.API_SECRET');
     $this->linkedinScope = Configure::read('linkedin-cred.SCOPE');
     $this->linkedin_return_url = Router::url(array('plugin' => 'UserManagement', 'controller' => 'Social', 'action' => 'linkedinLogin'), true);
     $this->socialLoginGroupId = Configure::read('socialLoginGroupId');
     $this->layout = null;
 }
Exemplo n.º 2
0
 public function beforeFilter()
 {
     parent::beforeFilter();
     // For CakePHP 2.1 and up
     $this->Auth->allow('login', 'logout');
 }
Exemplo n.º 3
0
 public function beforeFilter()
 {
     parent::beforeFilter();
     // For CakePHP 2.1 and up
     //$this->Auth->allow();
 }