X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/263384cf99864ebdb0408fd4e478f783aa487c1a..refs/pull/3630/head:/app/Config/auth.php diff --git a/app/Config/auth.php b/app/Config/auth.php index 69da69bf1..37190156a 100644 --- a/app/Config/auth.php +++ b/app/Config/auth.php @@ -10,10 +10,13 @@ return [ - // Method of authentication to use // 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. @@ -41,11 +44,11 @@ return [ 'provider' => 'external', ], 'oidc' => [ - 'driver' => 'async-external-session', + 'driver' => 'async-external-session', 'provider' => 'external', ], 'api' => [ - 'driver' => 'api-token', + 'driver' => 'api-token', ], ], @@ -58,10 +61,16 @@ return [ 'driver' => 'eloquent', 'model' => \BookStack\Auth\User::class, ], + 'external' => [ 'driver' => 'external-users', 'model' => \BookStack\Auth\User::class, ], + + // 'users' => [ + // 'driver' => 'database', + // 'table' => 'users', + // ], ], // Resetting Passwords @@ -78,4 +87,10 @@ return [ ], ], + // Password Confirmation Timeout + // Here you may define the amount of seconds before a password confirmation + // times out and the user is prompted to re-enter their password via the + // confirmation screen. By default, the timeout lasts for three hours. + 'password_timeout' => 10800, + ];