Skip to content

Commit

Permalink
Allow multiple scopes for IDPs
Browse files Browse the repository at this point in the history
  • Loading branch information
JanOppolzer committed Nov 15, 2023
1 parent f593214 commit 0b8daa8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/Http/Controllers/EntityController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
2 changes: 1 addition & 1 deletion app/Traits/ValidatorTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 0b8daa8

Please sign in to comment.