Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion .env.example.complete
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,12 @@ SAML2_ONELOGIN_OVERRIDES=null
SAML2_DUMP_USER_DETAILS=false
SAML2_AUTOLOAD_METADATA=false

# SAML Authentication context.
# Set to false and no AuthContext will be sent in the AuthNRequest,
# Set true and you will get an AuthContext 'exact' 'urn:oasis:names:tc:SAML:2.0:ac:classes:PasswordProtectedTransport'
# Set an array with the possible auth context values: array ('urn:oasis:names:tc:SAML:2.0:ac:classes:Password', 'urn:oasis:names:tc:SAML:2.0:ac:classes:X509'),
SAML2_IDP_AUTHNCONTEXT=false

# SAML group sync configuration
# Refer to https://www.bookstackapp.com/docs/admin/saml2-auth/
SAML2_USER_TO_GROUPS=false
Expand Down Expand Up @@ -267,4 +273,4 @@ API_DEFAULT_ITEM_COUNT=100
API_MAX_ITEM_COUNT=500

# The number of API requests that can be made per minute by a single user.
API_REQUESTS_PER_MIN=180
API_REQUESTS_PER_MIN=180
6 changes: 6 additions & 0 deletions app/Config/saml2.php
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,12 @@
// )
// ),
],
'security' => [
// Specifies Authentication context
// false means that IDP choose authentication method
// null force Form based authentication or is possible set via array supported methods. See to onelogin/php-sampl/advance_settings
'requestedAuthnContext' => env('SAML2_IDP_AUTHNCONTEXT',false),
],
],

];