This commit is contained in:
afornerot 2021-03-11 15:01:24 +01:00
parent 9e899cd73d
commit 0c48b87692
4 changed files with 68 additions and 0 deletions

View File

@ -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

View File

@ -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) {

View File

@ -0,0 +1,32 @@
{% extends "base.html.twig" %}
{% block body %}
{% if wssuse and app.user %}
{{ render(path("app_wss_sample")) }}
{% endif %}
<div class="container">
<div class="card mt-5">
<div class="card-header">
<h2>Atttribut SSO</h2>
</div>
<div class="card-body">
{% for key, attribute in attributes %}
{% if attribute is iterable %}
{% for value in attribute %}
<strong>{{ key }}</strong> = {{ value }}<br>
{% endfor %}
{% else %}
<strong>{{ key }}</strong> = {{ attribute }}<br>
{% endif %}
{% endfor %}
</div>
</div>
</div>
{% endblock %}

View File

@ -3,6 +3,29 @@
{% block body %}
{% if wssuse and app.user %}
{{ render(path("app_wss_sample")) }}
{% endif %}
<div class="card-body">
{% if app.user %}
<div class="container">
<div class="card mt-5">
<div class="card-header">
<h2>Atttribut SSO</h2>
</div>
<div class="card-body">
{% for key, attribute in app.session.get("attributes") %}
{% if attribute is iterable %}
{% for value in attribute %}
<strong>{{ key }}</strong> = {{ value }}<br>
{% endfor %}
{% else %}
<strong>{{ key }}</strong> = {{ attribute }}<br>
{% endif %}
{% endfor %}
</div>
</div>
</div>
{% endif %}
{% endblock %}