4 * Authentication configuration options.
6 * Changes to these config files are not supported by BookStack and may break upon updates.
7 * Configuration should be altered via the `.env` file or environment variables.
8 * Do not edit this file unless you're happy to maintain any changes yourself.
13 // Options: standard, ldap, saml2, oidc
14 'method' => env('AUTH_METHOD', 'standard'),
16 // Automatically initiate login via external auth system if it's the sole auth method.
17 // Works with saml2 or oidc auth methods.
18 'auto_initiate' => env('AUTH_AUTO_INITIATE', false),
20 // Authentication Defaults
21 // This option controls the default authentication "guard" and password
22 // reset options for your application.
24 'guard' => env('AUTH_METHOD', 'standard'),
25 'passwords' => 'users',
28 // Authentication Guards
29 // All authentication drivers have a user provider. This defines how the
30 // users are actually retrieved out of your database or other storage
31 // mechanisms used by this application to persist your user's data.
32 // Supported drivers: "session", "api-token", "ldap-session", "async-external-session"
35 'driver' => 'session',
36 'provider' => 'users',
39 'driver' => 'ldap-session',
40 'provider' => 'external',
43 'driver' => 'async-external-session',
44 'provider' => 'external',
47 'driver' => 'async-external-session',
48 'provider' => 'external',
51 'driver' => 'api-token',
56 // All authentication drivers have a user provider. This defines how the
57 // users are actually retrieved out of your database or other storage
58 // mechanisms used by this application to persist your user's data.
61 'driver' => 'eloquent',
62 'model' => \BookStack\Users\Models\User::class,
66 'driver' => 'external-users',
67 'model' => \BookStack\Users\Models\User::class,
71 // 'driver' => 'database',
72 // 'table' => 'users',
76 // Resetting Passwords
77 // The expire time is the number of minutes that the reset token should be
78 // considered valid. This security feature keeps tokens short-lived so
79 // they have less time to be guessed. You may change this as needed.
82 'provider' => 'users',
83 'email' => 'emails.password',
84 'table' => 'password_resets',
90 // Password Confirmation Timeout
91 // Here you may define the amount of seconds before a password confirmation
92 // times out and the user is prompted to re-enter their password via the
93 // confirmation screen. By default, the timeout lasts for three hours.
94 'password_timeout' => 10800,