1
0
Files
breadcrumb-the-shire/lib/Service/Auth/AuthSettingsGateway.php
2026-02-23 12:58:19 +01:00

53 lines
1.2 KiB
PHP

<?php
namespace MintyPHP\Service\Auth;
use MintyPHP\Service\Settings\SettingGateway;
class AuthSettingsGateway
{
public function __construct(private readonly SettingGateway $settingGateway)
{
}
public function getMicrosoftSharedClientId(): string
{
return (string) $this->settingGateway->getMicrosoftSharedClientId();
}
public function getMicrosoftSharedClientSecret(): string
{
return (string) $this->settingGateway->getMicrosoftSharedClientSecret();
}
public function getMicrosoftAuthority(): string
{
return (string) $this->settingGateway->getMicrosoftAuthority();
}
public function getApiTokenMaxTtlDays(): int
{
return $this->settingGateway->getApiTokenMaxTtlDays();
}
public function getApiTokenDefaultTtlDays(): int
{
return $this->settingGateway->getApiTokenDefaultTtlDays();
}
public function getAppTheme(): string
{
return (string) $this->settingGateway->getAppTheme();
}
public function getDefaultRoleId(): int
{
return (int) $this->settingGateway->getDefaultRoleId();
}
public function getDefaultDepartmentId(): int
{
return (int) $this->settingGateway->getDefaultDepartmentId();
}
}