singleloginsystem/app/OAuth/CustomOidcClient.php
= 2682a234d4 Feat: Introduce custom OIDC client to enforce authorization prompts
- Created `CustomOidcClient` to override default `OidcClient` behavior, ensuring authorization prompts are always displayed.
- Updated `oidc-server.php` configuration to use the custom client model.
2026-06-17 08:45:11 +00:00

20 lines
429 B
PHP

<?php
declare(strict_types=1);
namespace App\OAuth;
use Admin9\OidcServer\Models\OidcClient;
use Illuminate\Contracts\Auth\Authenticatable;
class CustomOidcClient extends OidcClient
{
/**
* Determine if the client should skip the authorization prompt.
*/
public function skipsAuthorization(Authenticatable $user, array $scopes): bool
{
return false; // Always show the approve/deny page
}
}