X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/f139cded789908efce3ac2ed1be26b947df647db..refs/pull/5280/head:/app/Config/auth.php diff --git a/app/Config/auth.php b/app/Config/auth.php index 1e1a9d350..b1578fdb7 100644 --- a/app/Config/auth.php +++ b/app/Config/auth.php @@ -13,6 +13,10 @@ return [ // Options: standard, ldap, saml2, oidc 'method' => env('AUTH_METHOD', 'standard'), + // Automatically initiate login via external auth system if it's the sole auth method. + // Works with saml2 or oidc auth methods. + 'auto_initiate' => env('AUTH_AUTO_INITIATE', false), + // Authentication Defaults // This option controls the default authentication "guard" and password // reset options for your application. @@ -55,12 +59,12 @@ return [ 'providers' => [ 'users' => [ 'driver' => 'eloquent', - 'model' => \BookStack\Auth\User::class, + 'model' => \BookStack\Users\Models\User::class, ], 'external' => [ 'driver' => 'external-users', - 'model' => \BookStack\Auth\User::class, + 'model' => \BookStack\Users\Models\User::class, ], // 'users' => [