Files
BookStack/app/Access/Guards/AsyncExternalBaseSessionGuard.php

32 lines
832 B
PHP
Raw Normal View History

<?php
2023-05-17 17:56:55 +01:00
namespace BookStack\Access\Guards;
2020-02-02 10:59:03 +00:00
/**
* External Auth Session Guard.
2020-02-02 10:59:03 +00:00
*
* The login process for external auth (SAML2/OIDC) 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 relevant
* controller and services. This class provides a safer, thin version of SessionGuard.
2020-02-02 10:59:03 +00:00
*/
class AsyncExternalBaseSessionGuard extends ExternalBaseSessionGuard
{
/**
* Validate a user's credentials.
*/
public function validate(array $credentials = []): bool
{
2020-02-02 10:59:03 +00:00
return false;
}
/**
* Attempt to authenticate a user using the given credentials.
*
2021-06-26 15:23:15 +00:00
* @param bool $remember
*/
public function attempt(array $credentials = [], $remember = false): bool
{
2020-02-02 10:59:03 +00:00
return false;
}
}