roleService = $roleService; } public function mount(): void { $this->applicationType = ApplicationTypeEnum::tryFrom($this->type); } public function save(bool $goBack = true): void { $this->form->validate(); ds($this->form->pull()); } public function goBack(): void { $this->redirectRoute("apps.index", navigate: true); } public function title(): string { $title = "New "; $title .= match ($this->applicationType) { ApplicationTypeEnum::Web => "Web Application ", ApplicationTypeEnum::SPA => "Single Page Application ", ApplicationTypeEnum::Machine => "Microservice Application ", null => "" }; $title .= "Integration"; return $title; } public function searchRoles(string $q = ''): void { $this->searchChoice('roles', $q); } public function selectAllRoles(): void { $this->selectAllChoice('roles'); } public function clearRoles(): void { $this->clearChoice('roles'); } protected function choiceFields(): array { return [ 'roles' => new ChoiceField( search: fn(string $q): array => $this->roleService->searchRolesForSelect($q)->toArray(), allIds: $this->roleService->getAllRoleIds(...), formPath: 'form.roleIds', ), ]; } }; ?>
{{config('app.name')}} sends response and ID Token back to these URIs.
{{config('app.name')}} sends back the user to these URIs after logout.
Choose whether to allow all users be able to connect this app or selected ones.