Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Sign in
Toggle navigation
S
Silex
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
common
Silex
Commits
18868114
Commit
18868114
authored
Jun 13, 2012
by
Fabien Potencier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tweaked some docs
parent
6a0f05dd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
4 deletions
+9
-4
doc/providers/security.rst
doc/providers/security.rst
+9
-4
No files found.
doc/providers/security.rst
View file @
18868114
...
...
@@ -200,9 +200,9 @@ Create the associated template:
.. note::
The ``admin_login_check`` route is automatically defined by S
ymfony and
its name is derived from the ``check_path`` value (all ``/`` are replaced
with
``_`` and the leading ``/`` is stripped).
The ``admin_login_check`` route is automatically defined by S
ilex and its
name is derived from the ``check_path`` value (all ``/`` are replaced with
``_`` and the leading ``/`` is stripped).
Defining more than one Firewall
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
...
...
@@ -289,7 +289,7 @@ You can check roles in Twig templates too:
.. code-block:: jinja
{% if is_granted('ROLE_ADMIN') %}
<a href="?_switch_user=fabien">Switch to Fabien</a>
<a href="
/secured
?_switch_user=fabien">Switch to Fabien</a>
{% endif %}
You can check is a user is "fully authenticated" (not an anonymous user for
...
...
@@ -307,6 +307,11 @@ instance) with the special ``IS_AUTHENTICATED_FULLY`` role:
Don't use the ``getRoles()`` method to check user roles.
.. caution::
``isGranted()`` throws an exception when no authentication information is
available (which is the case on non-secured area).
Impersonating a User
~~~~~~~~~~~~~~~~~~~~
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment