SSO #1

Merged
Charles-Edouard merged 23 commits from SSO into main 2025-07-29 16:46:46 +02:00
3 changed files with 9 additions and 53 deletions
Showing only changes of commit 974c4a0cc3 - Show all commits

View File

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

View File

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

View File

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