]> BookStack Code Mirror - bookstack/blob - app/Auth/Access/Guards/Saml2SessionGuard.php
Apply fixes from StyleCI
[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      *
20      * @return bool
21      */
22     public function validate(array $credentials = [])
23     {
24         return false;
25     }
26
27     /**
28      * Attempt to authenticate a user using the given credentials.
29      *
30      * @param array $credentials
31      * @param bool  $remember
32      *
33      * @return bool
34      */
35     public function attempt(array $credentials = [], $remember = false)
36     {
37         return false;
38     }
39 }