- Created `CustomOidcClient` to override default `OidcClient` behavior, ensuring authorization prompts are always displayed. - Updated `oidc-server.php` configuration to use the custom client model.
20 lines
429 B
PHP
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
|
|
}
|
|
}
|