diff --git a/src/nineskeletor-1.0/config/routes.yaml b/src/nineskeletor-1.0/config/routes.yaml index 73c1c19..efff704 100644 --- a/src/nineskeletor-1.0/config/routes.yaml +++ b/src/nineskeletor-1.0/config/routes.yaml @@ -28,6 +28,10 @@ app_logoutcas: path: /logoutcas defaults: { _controller: App\Controller\SecurityController:logout } +app_casdebug: + path: /user/casdebug + defaults: { _controller: App\Controller\SecurityController:casdebug } + #== Config ============================================================================================================== app_config: path: /admin/config diff --git a/src/nineskeletor-1.0/src/Controller/SecurityController.php b/src/nineskeletor-1.0/src/Controller/SecurityController.php index 70bcb8d..bee2e9a 100755 --- a/src/nineskeletor-1.0/src/Controller/SecurityController.php +++ b/src/nineskeletor-1.0/src/Controller/SecurityController.php @@ -186,6 +186,15 @@ class SecurityController extends AbstractController return true; } + public function casdebug() { + $attributes = $this->get('session')->get('attributes'); + + return $this->render('Home/casdebug.html.twig',[ + "useheader" => true, + "usesidebar" => false, + "attributes" => $attributes, + ]); + } private function updateNinegate($user) { diff --git a/src/nineskeletor-1.0/templates/Home/casdebug.html.twig b/src/nineskeletor-1.0/templates/Home/casdebug.html.twig new file mode 100644 index 0000000..af9b355 --- /dev/null +++ b/src/nineskeletor-1.0/templates/Home/casdebug.html.twig @@ -0,0 +1,32 @@ +{% extends "base.html.twig" %} + +{% block body %} +{% if wssuse and app.user %} +{{ render(path("app_wss_sample")) }} +{% endif %} + + + +
+
+
+

Atttribut SSO

+
+ +
+ {% for key, attribute in attributes %} + {% if attribute is iterable %} + {% for value in attribute %} + {{ key }} = {{ value }}
+ {% endfor %} + {% else %} + {{ key }} = {{ attribute }}
+ {% endif %} + {% endfor %} +
+
+
+ +{% endblock %} + + diff --git a/src/nineskeletor-1.0/templates/Home/home.html.twig b/src/nineskeletor-1.0/templates/Home/home.html.twig index af27cd1..86a6fad 100644 --- a/src/nineskeletor-1.0/templates/Home/home.html.twig +++ b/src/nineskeletor-1.0/templates/Home/home.html.twig @@ -3,6 +3,29 @@ {% block body %} {% if wssuse and app.user %} {{ render(path("app_wss_sample")) }} +{% endif %} +
+ +{% if app.user %} +
+
+
+

Atttribut SSO

+
+ +
+ {% for key, attribute in app.session.get("attributes") %} + {% if attribute is iterable %} + {% for value in attribute %} + {{ key }} = {{ value }}
+ {% endfor %} + {% else %} + {{ key }} = {{ attribute }}
+ {% endif %} + {% endfor %} +
+
+
{% endif %} {% endblock %}