SSO #1
|
|
@ -72,10 +72,10 @@
|
||||||
</select> #}
|
</select> #}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{# <a class="dropdown-item" style="padding-left: 8px;" href="{{ path('sso_logout') }}">#}
|
<a class="dropdown-item" style="padding-left: 8px;" href="{{ path('sso_logout') }}">
|
||||||
{# <i class="me-2">{{ ux_icon('material-symbols:logout', {height: '20px', width: '20px'}) }}</i> #}
|
<i class="me-2">{{ ux_icon('material-symbols:logout', {height: '20px', width: '20px'}) }}</i>
|
||||||
{# Deconnexion#}
|
Deconnexion
|
||||||
{# </a>#}
|
</a>
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
|
||||||
|
|
@ -4,9 +4,9 @@
|
||||||
|
|
||||||
{% block body %}
|
{% block body %}
|
||||||
|
|
||||||
{# {% if app.user %}#}
|
{% if app.user %}
|
||||||
{# <div class="mb-3">#}
|
<div class="mb-3">
|
||||||
{# You are logged in as {{ app.user.userIdentifier }}, <a href="{{ path('app_logout') }}">Logout</a>#}
|
You are logged in as {{ app.user.userIdentifier }}, <a href="{{ path('sso_logout') }}">Logout</a>
|
||||||
{# </div>#}
|
</div>
|
||||||
{# {% endif %}#}
|
{% endif %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
|
||||||
|
|
@ -1,44 +0,0 @@
|
||||||
{% extends 'base.html.twig' %}
|
|
||||||
|
|
||||||
{% block title %}Test - index{% endblock %}
|
|
||||||
{#{% block jaa %}#}
|
|
||||||
{# <script>#}
|
|
||||||
|
|
||||||
{# const eventSource = new EventSource("{{ mercure('http://solutions-easy.moi/connect')|raw }}");#}
|
|
||||||
|
|
||||||
{# eventSource.onmessage = event => {#}
|
|
||||||
{# console.log(JSON.parse(event))#}
|
|
||||||
{# // You can update the UI or handle the message as needed#}
|
|
||||||
{# };#}
|
|
||||||
|
|
||||||
{# </script>#}
|
|
||||||
{#{% endblock %}#}
|
|
||||||
|
|
||||||
{% block body %}
|
|
||||||
{% if app.user %}
|
|
||||||
<div class="mb-3">
|
|
||||||
You are logged in as {{ app.user.userIdentifier }}, <a href="{{ path('app_logout') }}">Logout</a>
|
|
||||||
</div>
|
|
||||||
{% endif %}
|
|
||||||
<h1>Testing Page</h1>
|
|
||||||
|
|
||||||
{# <h2>Active Tabs per User</h2>#}
|
|
||||||
{# <ul>#}
|
|
||||||
{# {% for topic, count in counts %}#}
|
|
||||||
{# <li>{{ topic }}: {{ count }} tab(s) open</li>#}
|
|
||||||
{# {% endfor %}#}
|
|
||||||
{# </ul>#}
|
|
||||||
|
|
||||||
{# <h2>All Subscriptions</h2>#}
|
|
||||||
{# <ul>#}
|
|
||||||
{# {% for sub in subscriptions %}#}
|
|
||||||
{# <li>#}
|
|
||||||
{# Topic: {{ sub.topic }}<br>#}
|
|
||||||
{# Subscriber: {{ sub.subscriber }}<br>#}
|
|
||||||
{# Active: {{ sub.active ? 'Yes' : 'No' }}#}
|
|
||||||
{# </li>#}
|
|
||||||
{# {% endfor %}#}
|
|
||||||
{# </ul>#}
|
|
||||||
{# {{ mercure('http://portail.solutions-easy.moi/connect?userId=' ~ app.user.userIdentifier) }}#}
|
|
||||||
|
|
||||||
{% endblock %}
|
|
||||||
Loading…
Reference in New Issue