From 5f9e7e114087df15ec530781caf63a1f74ef5876 Mon Sep 17 00:00:00 2001 From: Bas Strooband Date: Wed, 23 Jan 2019 11:46:44 +0100 Subject: [PATCH] Fix oidc client id on detail page The : in an oidc entityId should be replaced with a @. This was done on other pages except on the entity detail page were it was missing in the corresponding viewobject. https://www.pivotaltracker.com/story/show/163417371 --- .../Application/ViewObject/EntityDetail.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Surfnet/ServiceProviderDashboard/Application/ViewObject/EntityDetail.php b/src/Surfnet/ServiceProviderDashboard/Application/ViewObject/EntityDetail.php index 2f3702951..127ba4d53 100644 --- a/src/Surfnet/ServiceProviderDashboard/Application/ViewObject/EntityDetail.php +++ b/src/Surfnet/ServiceProviderDashboard/Application/ViewObject/EntityDetail.php @@ -323,7 +323,10 @@ public function getAcsLocation() */ public function getEntityId() { - return $this->entityId; + if ($this->getProtocol() !== DomainEntity::TYPE_OPENID_CONNECT) { + return $this->entityId; + } + return str_replace('://', '@//', $this->entityId); } /**