{% extends '@WebProfiler/Profiler/layout.html.twig' %} {% block page_title 'Security' %} {% block toolbar %} {% if collector.tokenClass %} {% set is_authenticated = collector.enabled and collector.authenticated %} {% set color_code = is_authenticated ? '' : 'yellow' %} {% else %} {% set color_code = collector.enabled ? 'red' : '' %} {% endif %} {% set icon %} {{ include('@Security/Collector/icon.svg') }}
{% endset %} {% set text %} {% if collector.tokenClass %} {% if collector.tokenClass != null %} {% endif %} {% if collector.logoutUrl %} {% endif %} {% elseif collector.enabled %} {% else %} {% endif %} {% endset %} {{ include('@WebProfiler/Profiler/toolbar_item.html.twig', { link: profiler_url, status: color_code }) }} {% endblock %} {% block menu %} {{ include('@Security/Collector/icon.svg') }} Security {% endblock %} {% block panel %}Property | Value |
---|---|
Roles |
{{ collector.roles is empty ? 'none' : collector.roles|yaml_encode }}
{% if not collector.authenticated and collector.roles is empty %}
User is not authenticated probably because they have no roles. {% endif %} |
Inherited Roles | {{ collector.inheritedRoles is empty ? 'none' : collector.inheritedRoles|yaml_encode }} |
Token class | {{ collector.tokenClass }} |
There is no security token.
The security component is disabled.