Ejemplo n.º 1
0
 /**
  * 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']);
 }
Ejemplo 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';
 }
Ejemplo 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'];
 }
Ejemplo n.º 4
0
 /**
  * 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;
 }
Ejemplo n.º 5
0
 /**
  * {@inheritdoc}
  */
 protected function createDriver($driver)
 {
     try {
         return parent::createDriver($driver);
     } catch (InvalidArgumentException $e) {
         if (class_exists($driver)) {
             return $this->app->make($driver);
         }
         throw $e;
     }
 }
Ejemplo n.º 6
0
 protected function callCustomCreator($driver)
 {
     return $this->buildSession(parent::callCustomCreator($driver));
 }
Ejemplo 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;
 }
Ejemplo 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);
 }
Ejemplo n.º 10
0
 /**
  * Create a new driver instance.
  *
  * @param  string  $driver
  * @return mixed
  */
 protected function createDriver($driver)
 {
     $renderer = parent::createDriver($driver);
     // any other setup needed
     return $renderer;
 }
Ejemplo 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);
 }
Ejemplo n.º 12
0
 /**
  * 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);
 }
Ejemplo n.º 13
0
 /**
  * @return \Doctrine\DBAL\Driver
  */
 public function getDrivers()
 {
     return parent::getDrivers();
 }
Ejemplo 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();
 }