]> BookStack Code Mirror - bookstack/blob - app/Auth/Access/Guards/Saml2SessionGuard.php
Adding APP_VIEWS_BOOKSHELF to .ENV
[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 class Saml2SessionGuard extends ExternalBaseSessionGuard
14 {
15     /**
16      * Validate a user's credentials.
17      *
18      * @param array $credentials
19      * @return bool
20      */
21     public function validate(array $credentials = [])
22     {
23         return false;
24     }
25
26     /**
27      * Attempt to authenticate a user using the given credentials.
28      *
29      * @param array $credentials
30      * @param bool $remember
31      * @return bool
32      */
33     public function attempt(array $credentials = [], $remember = false)
34     {
35         return false;
36     }
37
38 }