40 lines
465 B
PHP
40 lines
465 B
PHP
|
|
<?php
|
||
|
|
|
||
|
|
namespace davina\auths;
|
||
|
|
|
||
|
|
require_once('vendor/autoload.php');
|
||
|
|
|
||
|
|
|
||
|
|
/**
|
||
|
|
*/
|
||
|
|
class class_auth_pass_through implements interface_auth
|
||
|
|
{
|
||
|
|
|
||
|
|
/**
|
||
|
|
* [implementation]
|
||
|
|
*/
|
||
|
|
function check(
|
||
|
|
array $credentials
|
||
|
|
) : bool
|
||
|
|
{
|
||
|
|
return true;
|
||
|
|
}
|
||
|
|
|
||
|
|
|
||
|
|
/**
|
||
|
|
* [implementation]
|
||
|
|
*/
|
||
|
|
function determine_parameters(
|
||
|
|
array $credentials
|
||
|
|
) : array
|
||
|
|
{
|
||
|
|
return [
|
||
|
|
'auth_username' => $credentials['username'],
|
||
|
|
'auth_password' => $credentials['password'],
|
||
|
|
];
|
||
|
|
}
|
||
|
|
|
||
|
|
}
|
||
|
|
|
||
|
|
?>
|