BookStack/app/Access/Guards/AsyncExternalBaseSessionGuard.php

40 lines
914 B
PHP
Raw Normal View History

<?php
2023-05-17 16:56:55 +00:00
namespace BookStack\Access\Guards;
2020-02-02 10:59:03 +00:00
/**
2021-06-26 15:23:15 +00:00
* Saml2 Session Guard.
2020-02-02 10:59:03 +00:00
*
* The saml2 login process is async in nature meaning it does not fit very well
* into the default laravel 'Guard' auth flow. Instead most of the logic is done
* via the Saml2 controller & Saml2Service. This class provides a safer, thin
* version of SessionGuard.
*/
class AsyncExternalBaseSessionGuard extends ExternalBaseSessionGuard
{
/**
* Validate a user's credentials.
*
* @param array $credentials
2021-06-26 15:23:15 +00:00
*
* @return bool
*/
public function validate(array $credentials = [])
{
2020-02-02 10:59:03 +00:00
return false;
}
/**
* Attempt to authenticate a user using the given credentials.
*
* @param array $credentials
2021-06-26 15:23:15 +00:00
* @param bool $remember
*
* @return bool
*/
public function attempt(array $credentials = [], $remember = false)
{
2020-02-02 10:59:03 +00:00
return false;
}
}