Skip to content

Commit

Permalink
minor #3422 [Cookbook][Custom Authentication Provider] add a note of …
Browse files Browse the repository at this point in the history
…warning for when forbidding anonymous users (cordoval)

This PR was merged into the 2.3 branch.

Discussion
----------

[Cookbook][Custom Authentication Provider] add a note of warning for when forbidding anonymous users

| Q             | A                   |
| ---           | ---                 |
| Doc fix?      | yes                 |
| New docs?     | no                  |
| Applies to    | 2.3+                |
| Fixed tickets | #3212               |
| License       | CC-ASA 3.0 Unported |

 Sent using [Gush](https://github.com/cordoval/gush)

Commits
-------

244d756 add note when forbidding access to anonymous users on custom authentication provider
  • Loading branch information
weaverryan committed Jan 9, 2014
2 parents 13222c9 + 244d756 commit 2be3f52
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions cookbook/security/custom_authentication_provider.rst
Expand Up @@ -182,6 +182,13 @@ a 403 Response is returned.
does not require maintaining authentication sessions or login forms, it
won't be used for this example.

.. note::

Returning prematurely from the listener is relevant only if you want to chain
authentication providers (for example to allow anonymous users). If you want
to forbid access to anonymous users and have a nice 403 error, you should set
the status code of the response before returning.

The Authentication Provider
---------------------------

Expand Down

0 comments on commit 2be3f52

Please sign in to comment.