Code development platform for open source projects from the European Union institutions :large_blue_circle: EU Login authentication by SMS has been phased out. To see alternatives please check here

Skip to content
Snippets Groups Projects
Commit 0a03ad14 authored by Pol Dellaiera's avatar Pol Dellaiera
Browse files

Merge branch 'laravel11_update' into 'main'

Laravel11 update

See merge request !16
parents bd30d218 2b3c840c
Branches
Tags 1.1.0
1 merge request!16Laravel11 update
......@@ -15,7 +15,7 @@
"ext-dom": "*",
"ext-simplexml": "*",
"ecphp/cas-lib": "^2.0",
"laravel/framework": "^10 || ^11"
"laravel/framework": "^9 || ^10 || ^11"
},
"require-dev": {
"ecphp/php-conventions": "^1.0",
......@@ -25,7 +25,7 @@
"phpstan/phpstan-strict-rules": "^1.6",
"roave/security-advisories": "dev-latest",
"symfony/cache": "^6.4 || ^7.1",
"symfony/psr-http-message-bridge": "^v6.4 || ^7.1"
"symfony/psr-http-message-bridge": "^6.4 || ^7.1"
},
"suggest": {
"symfony/psr-http-message-bridge": "To bridge between Laravel and PSR HTTP Message"
......
......@@ -17,6 +17,8 @@ use Illuminate\Contracts\Auth\UserProvider;
use Illuminate\Contracts\Session\Session;
use Illuminate\Http\Request;
use function sprintf;
final class CasGuard implements AuthGuard
{
private bool $loggedOut = false;
......
......@@ -33,6 +33,8 @@ final class CasUserProvider implements UserProvider
return $this->model;
}
public function rehashPasswordIfRequired(Authenticatable $user, array $credentials, bool $force = false) {}
public function retrieveByCredentials(array $credentials): ?Authenticatable
{
if ([] === $credentials) {
......
......@@ -81,6 +81,8 @@ final class CasUser implements Authenticatable
return null;
}
public function getAuthPasswordName() {}
public function getPassword(): ?string
{
return null;
......
......@@ -45,7 +45,7 @@ final class AppServiceProvider extends ServiceProvider
'laravel-cas'
);
$this->app->router->group(
['namespace' => 'EcPhp\\LaravelCas\\Controllers'],
['namespace' => 'EcPhp\LaravelCas\Controllers'],
static fn () => require dirname(__DIR__) . '/Config/routes.php'
);
Auth::provider(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment