Skip to content

Commit

Permalink
Show the Type of service on the entity detail page
Browse files Browse the repository at this point in the history
  • Loading branch information
MKodde committed Jul 3, 2024
1 parent 5005a25 commit cf2fa7a
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ public function __construct(
private readonly ?int $accessTokenValidity,
private readonly ?bool $isPublicClient,
private readonly ?array $resourceServers,
private readonly ?array $typeOfService,
) {
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@

use Surfnet\ServiceProviderDashboard\Application\Service\EntityServiceInterface;
use Surfnet\ServiceProviderDashboard\Application\Factory\EntityDetailFactory;
use Surfnet\ServiceProviderDashboard\Domain\Entity\ManageEntity;
use Surfnet\ServiceProviderDashboard\Infrastructure\DashboardBundle\Service\AuthorizationService;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\HttpFoundation\Response;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ entity:
redirect_uris: Redirect URIs
playground_enabled: Playground enabled?
name_id_format: NameID format
type_of_service: Type of service
subject_type: Subject type
certificate: Certificate
logo_url: Logo URL
Expand Down
4 changes: 4 additions & 0 deletions templates/EntityDetail/detail.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@
{% if entity.protocol == "saml20" %}
{% include '@Dashboard/EntityDetail/detailTextField.html.twig' with {label: 'entity.detail.metadata.entity_id'|trans, value: entity.entityId, informationPopup: 'entity.edit.information.entityId'} %}
{% include '@Dashboard/EntityDetail/detailTextField.html.twig' with {label: 'entity.detail.metadata.name_id_format'|trans, value: entity.nameIdFormat|replace({'urn:oasis:names:tc:SAML:2.0:nameid-format:': ''}), informationPopup: 'entity.edit.information.nameIdFormat'} %}
{% include '@Dashboard/EntityDetail/detailListField.html.twig' with {label: 'entity.detail.metadata.type_of_service'|trans, value: entity.typeOfService, informationPopup: 'entity.edit.information.typeOfService'} %}

{% endif %}

{% if entity.protocol == "oidcng" %}
Expand All @@ -33,6 +35,8 @@
{% include '@Dashboard/EntityDetail/detailBooleanField.html.twig' with {label: 'entity.detail.metadata.playground_enabled'|trans, value: entity.playgroundEnabled, informationPopup: 'entity.edit.information.enablePlayground'} %}
{% include '@Dashboard/EntityDetail/detailBooleanField.html.twig' with {label: 'entity.detail.metadata.is_public_client'|trans, value: entity.publicClient, informationPopup: 'entity.edit.information.isPublicClient'} %}
{% include '@Dashboard/EntityDetail/detailTextField.html.twig' with {label: 'entity.detail.metadata.access_token_validity'|trans, value: entity.accessTokenValidity, informationPopup: 'entity.edit.information.accessTokenValidity'} %}
{% include '@Dashboard/EntityDetail/detailListField.html.twig' with {label: 'entity.detail.metadata.type_of_service'|trans, value: entity.typeOfService, informationPopup: 'entity.edit.information.typeOfService'} %}

{% endif %}

{% if entity.protocol == "oauth20_rs" %}
Expand Down

0 comments on commit cf2fa7a

Please sign in to comment.