= 28f6da1a9a Feat: Add OIDC config resolver and enhanced logging for app creation
- Introduced `OidcConfigResolver` to streamline client secret checks based on app type.
- Enhanced logging in `OidcService` to provide detailed insights during app creation and error handling.
- Updated UI to conditionally display client secret based on app type.
- Added placeholder image support for app logos.
2026-06-19 05:53:19 +00:00

25 lines
493 B
PHP

<?php
declare(strict_types=1);
namespace App\Services\Applications\OIDC;
use App\Enums\ApplicationTypeEnum;
class OidcConfigResolver
{
private ?ApplicationTypeEnum $applicationType = null;
public function for(ApplicationTypeEnum $applicationType): OidcConfigResolver
{
$this->applicationType = $applicationType;
return $this;
}
public function hasClientSecret(): bool
{
return ApplicationTypeEnum::SPA !== $this->applicationType;
}
}