]> BookStack Code Mirror - bookstack/blob - app/Auth/Access/Guards/Saml2SessionGuard.php
Added tests and translations for dark-mode components
[bookstack] / app / Auth / Access / Guards / Saml2SessionGuard.php
1 <?php
2
3 namespace BookStack\Auth\Access\Guards;
4
5 /**
6  * Saml2 Session Guard
7  *
8  * The saml2 login process is async in nature meaning it does not fit very well
9  * into the default laravel 'Guard' auth flow. Instead most of the logic is done
10  * via the Saml2 controller & Saml2Service. This class provides a safer, thin
11  * version of SessionGuard.
12  *
13  * @package BookStack\Auth\Access\Guards
14  */
15 class Saml2SessionGuard extends ExternalBaseSessionGuard
16 {
17     /**
18      * Validate a user's credentials.
19      *
20      * @param array $credentials
21      * @return bool
22      */
23     public function validate(array $credentials = [])
24     {
25         return false;
26     }
27
28     /**
29      * Attempt to authenticate a user using the given credentials.
30      *
31      * @param array $credentials
32      * @param bool $remember
33      * @return bool
34      */
35     public function attempt(array $credentials = [], $remember = false)
36     {
37         return false;
38     }
39
40 }