]> BookStack Code Mirror - bookstack/commitdiff
Merge branch 'ivir-authncontext' of https://github.com/ivir/BookStack into ivir-ivir...
authorDan Brown <redacted>
Sat, 8 May 2021 11:13:27 +0000 (12:13 +0100)
committerDan Brown <redacted>
Sat, 8 May 2021 11:13:27 +0000 (12:13 +0100)
.env.example.complete
app/Config/saml2.php

index d243f2c1fcb9d13b52ba9dc9e55a27b07e663f79..a3b0702d5b1385b9492d01d8ffe2c0a32ea4da3d 100644 (file)
@@ -223,6 +223,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
index d695abf325d1e5260b14d8325ea503c18bfe1abb..0e186c26937e0b97282d6e46abd5692f8b6666f3 100644 (file)
@@ -139,6 +139,12 @@ return [
             //      )
             // ),
         ],
+        '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), 
+        ],
     ],
 
 ];