Phase 6 (Teil 2): OpenID Connect, LDAP/AD und SAML 2
All checks were successful
CI / PHP 8.3 / mariadb:10.6 (pull_request) Successful in 2m41s
CI / PHP 8.4 / mariadb:10.6 (pull_request) Successful in 2m48s
CI / PHP 8.3 / mariadb:11.4 (pull_request) Successful in 3m15s
CI / PHP 8.4 / mariadb:11.4 (pull_request) Successful in 3m17s
CI / PHP 8.3 / mysql:8.0 (pull_request) Successful in 3m48s
CI / PHP 8.4 / mysql:8.0 (pull_request) Successful in 3m41s
CI / PHP 8.3 / mysql:8.4 (pull_request) Successful in 3m33s
CI / Build-Artefakte aktuell (pull_request) Successful in 1m26s
CI / PHP 8.4 / mysql:8.4 (pull_request) Successful in 3m59s
All checks were successful
CI / PHP 8.3 / mariadb:10.6 (pull_request) Successful in 2m41s
CI / PHP 8.4 / mariadb:10.6 (pull_request) Successful in 2m48s
CI / PHP 8.3 / mariadb:11.4 (pull_request) Successful in 3m15s
CI / PHP 8.4 / mariadb:11.4 (pull_request) Successful in 3m17s
CI / PHP 8.3 / mysql:8.0 (pull_request) Successful in 3m48s
CI / PHP 8.4 / mysql:8.0 (pull_request) Successful in 3m41s
CI / PHP 8.3 / mysql:8.4 (pull_request) Successful in 3m33s
CI / Build-Artefakte aktuell (pull_request) Successful in 1m26s
CI / PHP 8.4 / mysql:8.4 (pull_request) Successful in 3m59s
- Gemeinsamer Treiber-Unterbau (App\Identity\IdentityDriver, IdentityDrivers, IdentityLogin, AttributeProfile); Entra ID nutzt ihn ebenfalls - Plugins oidc, ldap und saml mit Profil- und Gruppen-Zuordnung - Admin: Verfahren wählen, Formular je Verfahren, zuletzt empfangene Angaben - onelogin/php-saml als neue Abhängigkeit Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
0ab0838050
commit
4fcc41ed30
172 changed files with 18940 additions and 293 deletions
|
|
@ -3,24 +3,45 @@
|
|||
namespace App\Filament\Resources\IdentityProviders\Pages;
|
||||
|
||||
use App\Filament\Resources\IdentityProviders\IdentityProviderResource;
|
||||
use App\Identity\IdentityDrivers;
|
||||
use App\Models\IdentityProvider;
|
||||
use App\Support\Audit;
|
||||
use Filament\Resources\Pages\CreateRecord;
|
||||
use Livewire\Attributes\Locked;
|
||||
|
||||
class CreateIdentityProvider extends CreateRecord
|
||||
{
|
||||
protected static string $resource = IdentityProviderResource::class;
|
||||
|
||||
/** Verfahren aus ?typ= – bestimmt das Formular. */
|
||||
#[Locked]
|
||||
public string $type = IdentityProvider::ENTRA;
|
||||
|
||||
public function mount(): void
|
||||
{
|
||||
$type = (string) request()->query('typ', IdentityProvider::ENTRA);
|
||||
abort_unless(app(IdentityDrivers::class)->has($type), 404);
|
||||
$this->type = $type;
|
||||
|
||||
parent::mount();
|
||||
}
|
||||
|
||||
public function getTitle(): string
|
||||
{
|
||||
return app(IdentityDrivers::class)->get($this->type)->label().' anbinden';
|
||||
}
|
||||
|
||||
protected function mutateFormDataBeforeCreate(array $data): array
|
||||
{
|
||||
$data['type'] = IdentityProvider::ENTRA;
|
||||
$data['type'] = $this->type;
|
||||
$data['config']['attribute_map'] = array_values((array) ($data['config']['attribute_map'] ?? []));
|
||||
|
||||
return $data;
|
||||
}
|
||||
|
||||
protected function afterCreate(): void
|
||||
{
|
||||
Audit::log('identity.provider_created', ['provider' => $this->record->name]);
|
||||
Audit::log('identity.provider_created', ['provider' => $this->record->name, 'type' => $this->record->type]);
|
||||
}
|
||||
|
||||
protected function getRedirectUrl(): string
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue