From 0b8daa8056ba7107e2533cfd5737834575b4c95a Mon Sep 17 00:00:00 2001 From: Jan Oppolzer Date: Wed, 15 Nov 2023 14:13:39 +0100 Subject: [PATCH] Allow multiple scopes for IDPs --- app/Http/Controllers/EntityController.php | 2 +- app/Traits/ValidatorTrait.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Http/Controllers/EntityController.php b/app/Http/Controllers/EntityController.php index 3f14e46..de233c0 100644 --- a/app/Http/Controllers/EntityController.php +++ b/app/Http/Controllers/EntityController.php @@ -281,7 +281,7 @@ function () use ($entity) { return redirect() ->route('entities.show', $entity) - ->with('status', __('entities.entity_updated')); + ->with('status', __('entities.entity_updated')." {$result['message']}"); break; diff --git a/app/Traits/ValidatorTrait.php b/app/Traits/ValidatorTrait.php index dfbe280..25d7908 100644 --- a/app/Traits/ValidatorTrait.php +++ b/app/Traits/ValidatorTrait.php @@ -513,7 +513,7 @@ public function checkScope(object $xpath): void $AAScope = $xpath->query('/md:EntityDescriptor/md:AttributeAuthorityDescriptor/md:Extensions/shibmd:Scope'); if ($IDPSSOScope->length !== 1) { - $this->error .= 'Precisely 1 EntityDescriptor/IDPSSODescriptor/Extensions/Scope required. '; + $this->message .= 'WARNING: Precisely 1 EntityDescriptor/IDPSSODescriptor/Extensions/Scope is HIGHLY recommended. '; } if ($AAScope->length > 1) {