use BookStack\Auth\Access\ExternalBaseUserProvider;
use BookStack\Auth\Access\Guards\LdapSessionGuard;
use BookStack\Auth\Access\Guards\Saml2SessionGuard;
+use BookStack\Auth\Access\Guards\OpenIdSessionGuard;
use BookStack\Auth\Access\LdapService;
+use BookStack\Auth\Access\OpenIdService;
use BookStack\Auth\Access\RegistrationService;
use BookStack\Auth\UserRepo;
use Illuminate\Support\ServiceProvider;
$app[RegistrationService::class]
);
});
+
+ Auth::extend('openid-session', function ($app, $name, array $config) {
+ $provider = Auth::createUserProvider($config['provider']);
+ return new OpenIdSessionGuard(
+ $name,
+ $provider,
+ $this->app['session.store'],
+ $app[OpenIdService::class],
+ $app[RegistrationService::class]
+ );
+ });
}
/**