|
33 | 33 | <span>{{ collector.tokenClass|abbr_class }}</span>
|
34 | 34 | </div>
|
35 | 35 | {% endif %}
|
| 36 | + {% if collector.firewall %} |
| 37 | + <div class="sf-toolbar-info-piece"> |
| 38 | + <b>Firewall name</b> |
| 39 | + <span>{{ collector.firewall.name }}</span> |
| 40 | + </div> |
| 41 | + {% endif %} |
36 | 42 | {% if collector.logoutUrl %}
|
37 | 43 | <div class="sf-toolbar-info-piece">
|
38 | 44 | <b>Actions</b>
|
|
63 | 69 | {% block panel %}
|
64 | 70 | <h2>Security Token</h2>
|
65 | 71 |
|
66 |
| - {% if collector.token %} |
67 |
| - <div class="metrics"> |
68 |
| - <div class="metric"> |
69 |
| - <span class="value">{{ collector.user == 'anon.' ? 'Anonymous' : collector.user }}</span> |
70 |
| - <span class="label">Username</span> |
| 72 | + {% if collector.enabled %} |
| 73 | + {% if collector.token %} |
| 74 | + <div class="metrics"> |
| 75 | + <div class="metric"> |
| 76 | + <span class="value">{{ collector.user == 'anon.' ? 'Anonymous' : collector.user }}</span> |
| 77 | + <span class="label">Username</span> |
| 78 | + </div> |
| 79 | + |
| 80 | + <div class="metric"> |
| 81 | + <span class="value">{{ include('@WebProfiler/Icon/' ~ (collector.authenticated ? 'yes' : 'no') ~ '.svg') }}</span> |
| 82 | + <span class="label">Authenticated</span> |
| 83 | + </div> |
71 | 84 | </div>
|
72 | 85 |
|
73 |
| - <div class="metric"> |
74 |
| - <span class="value">{{ include('@WebProfiler/Icon/' ~ (collector.authenticated ? 'yes' : 'no') ~ '.svg') }}</span> |
75 |
| - <span class="label">Authenticated</span> |
| 86 | + <table> |
| 87 | + <thead> |
| 88 | + <tr> |
| 89 | + <th scope="col" class="key">Property</th> |
| 90 | + <th scope="col">Value</th> |
| 91 | + </tr> |
| 92 | + </thead> |
| 93 | + <tbody> |
| 94 | + <tr> |
| 95 | + <th>Roles</th> |
| 96 | + <td> |
| 97 | + {{ collector.roles is empty ? 'none' : profiler_dump(collector.roles, maxDepth=1) }} |
| 98 | + |
| 99 | + {% if not collector.authenticated and collector.roles is empty %} |
| 100 | + <p class="help">User is not authenticated probably because they have no roles.</p> |
| 101 | + {% endif %} |
| 102 | + </td> |
| 103 | + </tr> |
| 104 | + |
| 105 | + {% if collector.supportsRoleHierarchy %} |
| 106 | + <tr> |
| 107 | + <th>Inherited Roles</th> |
| 108 | + <td>{{ collector.inheritedRoles is empty ? 'none' : profiler_dump(collector.inheritedRoles, maxDepth=1) }}</td> |
| 109 | + </tr> |
| 110 | + {% endif %} |
| 111 | + |
| 112 | + {% if collector.token %} |
| 113 | + <tr> |
| 114 | + <th>Token</th> |
| 115 | + <td>{{ profiler_dump(collector.token) }}</td> |
| 116 | + </tr> |
| 117 | + {% endif %} |
| 118 | + </tbody> |
| 119 | + </table> |
| 120 | + {% elseif collector.enabled %} |
| 121 | + <div class="empty"> |
| 122 | + <p>There is no security token.</p> |
76 | 123 | </div>
|
77 |
| - </div> |
| 124 | + {% endif %} |
78 | 125 |
|
79 |
| - <table> |
80 |
| - <thead> |
81 |
| - <tr> |
82 |
| - <th scope="col" class="key">Property</th> |
83 |
| - <th scope="col">Value</th> |
84 |
| - </tr> |
85 |
| - </thead> |
86 |
| - <tbody> |
87 |
| - <tr> |
88 |
| - <th>Roles</th> |
89 |
| - <td> |
90 |
| - {{ collector.roles is empty ? 'none' : profiler_dump(collector.roles, maxDepth=1) }} |
91 |
| - |
92 |
| - {% if not collector.authenticated and collector.roles is empty %} |
93 |
| - <p class="help">User is not authenticated probably because they have no roles.</p> |
94 |
| - {% endif %} |
95 |
| - </td> |
96 |
| - </tr> |
97 | 126 |
|
98 |
| - {% if collector.supportsRoleHierarchy %} |
99 |
| - <tr> |
100 |
| - <th>Inherited Roles</th> |
101 |
| - <td>{{ collector.inheritedRoles is empty ? 'none' : profiler_dump(collector.inheritedRoles, maxDepth=1) }}</td> |
102 |
| - </tr> |
103 |
| - {% endif %} |
| 127 | + <h2>Security Firewall</h2> |
104 | 128 |
|
105 |
| - {% if collector.token %} |
106 |
| - <tr> |
107 |
| - <th>Token</th> |
108 |
| - <td>{{ profiler_dump(collector.token) }}</td> |
109 |
| - </tr> |
110 |
| - {% endif %} |
111 |
| - </tbody> |
112 |
| - </table> |
113 |
| - {% elseif collector.enabled %} |
114 |
| - <div class="empty"> |
115 |
| - <p>There is no security token.</p> |
116 |
| - </div> |
| 129 | + {% if collector.firewall %} |
| 130 | + <div class="metrics"> |
| 131 | + <div class="metric"> |
| 132 | + <span class="value">{{ collector.firewall.name }}</span> |
| 133 | + <span class="label">Name</span> |
| 134 | + </div> |
| 135 | + <div class="metric"> |
| 136 | + <span class="value">{{ include('@WebProfiler/Icon/' ~ (collector.firewall.security_enabled ? 'yes' : 'no') ~ '.svg') }}</span> |
| 137 | + <span class="label">Security enabled</span> |
| 138 | + </div> |
| 139 | + <div class="metric"> |
| 140 | + <span class="value">{{ include('@WebProfiler/Icon/' ~ (collector.firewall.stateless ? 'yes' : 'no') ~ '.svg') }}</span> |
| 141 | + <span class="label">Stateless</span> |
| 142 | + </div> |
| 143 | + <div class="metric"> |
| 144 | + <span class="value">{{ include('@WebProfiler/Icon/' ~ (collector.firewall.allows_anonymous ? 'yes' : 'no') ~ '.svg') }}</span> |
| 145 | + <span class="label">Allows anonymous</span> |
| 146 | + </div> |
| 147 | + </div> |
| 148 | + {% if collector.firewall.security_enabled %} |
| 149 | + <table> |
| 150 | + <thead> |
| 151 | + <tr> |
| 152 | + <th scope="col" class="key">Key</th> |
| 153 | + <th scope="col">Value</th> |
| 154 | + </tr> |
| 155 | + </thead> |
| 156 | + <tbody> |
| 157 | <
10000
span class="diff-text-marker">+ <tr> |
| 158 | + <th>provider</th> |
| 159 | + <td>{{ collector.firewall.provider }}</td> |
| 160 | + </tr> |
| 161 | + <tr> |
| 162 | + <th>context</th> |
| 163 | + <td>{{ collector.firewall.context }}</td> |
| 164 | + </tr> |
| 165 | + <tr> |
| 166 | + <th>entry_point</th> |
| 167 | + <td>{{ collector.firewall.entry_point }}</td> |
| 168 | + </tr> |
| 169 | + <tr> |
| 170 | + <th>user_checker</th> |
| 171 | + <td>{{ collector.firewall.user_checker }}</td> |
| 172 | + </tr> |
| 173 | + <tr> |
| 174 | + <th>access_denied_handler</th> |
| 175 | + <td>{{ collector.firewall.access_denied_handler }}</td> |
| 176 | + </tr> |
| 177 | + <tr> |
| 178 | + <th>access_denied_url</th> |
| 179 | + <td>{{ collector.firewall.access_denied_url }}</td> |
| 180 | + </tr> |
| 181 | + <tr> |
| 182 | + <th>listeners</th> |
| 183 | + <td>{{ collector.firewall.listeners is empty ? 'none' : profiler_dump(collector.firewall.listeners, maxDepth=1) }}</td> |
| 184 | + </tr> |
| 185 | + </tbody> |
| 186 | + </table> |
| 187 | + {% endif %} |
| 188 | + {% elseif collector.enabled %} |
| 189 | + <div class="empty"> |
| 190 | + <p>There is no firewall.</p> |
| 191 | + </div> |
| 192 | + {% endif %} |
117 | 193 | {% else %}
|
118 | 194 | <div class="empty">
|
119 | 195 | <p>The security component is disabled.</p>
|
|
0 commit comments