/**
  * Call a custom driver creator.
  *
  * @param  string  $driver
  * @return \Illuminate\Auth\Guard
  */
 protected function callCustomCreator($driver)
 {
     $custom = parent::callCustomCreator($driver);
     if ($custom instanceof Guard) {
         return $custom;
     }
     return new Guard($custom, $this->app['session.store']);
 }
Esempio n. 2
0
 public function __construct($app)
 {
     parent::__construct($app);
     if (!$app['config']['OidConnect']) {
         throw new \InvalidArgumentException("OidConnect config file [app/config/OidConnect.php] not found.");
     }
     $this->fedKeyModel = $app['config']['OidConnect.dbfedkeymodel'] ?: 'OidConnect\\Models\\FedKeyModel';
     $this->socialUser = $app['config']['OidConnect.socialuser'] ?: 'OidConnect\\UserManagement\\SocialUser';
 }
Esempio n. 3
0
 /**
  * Neo4j constructor
  *
  * @param string $configPath Configuration path
  * @param ContainerInterface $container Container  instance
  */
 public function __construct($configPath = null, ContainerInterface $container = null)
 {
     if (is_null($container)) {
         $container = new Container($configPath);
     }
     parent::__construct($container);
     $this->default = $this->app['config']->get('database.neo4j.default');
     $this->profiles = $this->app['config']->get('database.neo4j.profiles');
     $this->events = $this->app['events'];
 }
 /**
  * Create a new driver instance.
  *
  * @param  string  $driver
  * @return mixed
  */
 protected function createDriver($driver)
 {
     $guard = parent::createDriver($driver);
     // When using the remember me functionality of the authentication services we
     // will need to be set the encryption isntance of the guard, which allows
     // secure, encrypted cookie values to get generated for those cookies.
     $guard->setCookieJar($this->app['cookie']);
     $guard->setDispatcher($this->app['events']);
     return $guard;
 }
 /**
  * {@inheritdoc}
  */
 protected function createDriver($driver)
 {
     try {
         return parent::createDriver($driver);
     } catch (InvalidArgumentException $e) {
         if (class_exists($driver)) {
             return $this->app->make($driver);
         }
         throw $e;
     }
 }
Esempio n. 6
0
 protected function callCustomCreator($driver)
 {
     return $this->buildSession(parent::callCustomCreator($driver));
 }
Esempio n. 7
0
 /**
  * Create new instance of ConfManager class.
  *
  * @param \Illuminate\Foundation\Application $driver
  */
 public function __construct($driver)
 {
     parent::__construct($driver);
 }
 /**
  * Create a new driver instance.
  *
  * @param  string  $driver
  * @return mixed
  */
 protected function createDriver($driver)
 {
     $clientValidationGenerator = parent::createDriver($driver);
     // any other setup needed
     return $clientValidationGenerator;
 }
Esempio n. 9
0
 public function __construct($app)
 {
     parent::__construct($app);
     $this->dbConnection = $this->app['db']->connection();
     $this->auditLogger = new DatabaseAuditLogger($this->_cfg('audit_log_table'), $this->dbConnection);
 }
 /**
  * Create a new driver instance.
  *
  * @param  string  $driver
  * @return mixed
  */
 protected function createDriver($driver)
 {
     $renderer = parent::createDriver($driver);
     // any other setup needed
     return $renderer;
 }
Esempio n. 11
0
 /**
  * Register a custom driver creator Closure.
  *
  * @param  string   $name
  * @param  \Closure $callback
  *
  * @return $this
  */
 public function extend($name, Closure $callback)
 {
     $this->parsers[Str::camel($name)] = Str::title($name);
     return parent::extend($name, $callback);
 }
 /**
  * Get a driver instance.
  *
  * @param string $driver
  *
  * @return mixed
  */
 public function driver($driver = null)
 {
     $driver = $driver ?: $this->getDefaultDriver();
     $this->driver = $driver;
     if (!in_array($driver, config('multiauth.drivers'))) {
         $driver = 'socialite';
     }
     return parent::driver($driver);
 }
Esempio n. 13
0
 /**
  * @return \Doctrine\DBAL\Driver
  */
 public function getDrivers()
 {
     return parent::getDrivers();
 }
Esempio n. 14
0
 /**
  * Init CASAuthentication
  *
  * @param $config
  * @param AuthManager $auth
  */
 public function __construct($app)
 {
     parent::__construct($app);
     $this->config = $this->app['config']['services.cas'];
     $this->initialize();
 }