We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0428c57 commit 244d756Copy full SHA for 244d756
cookbook/security/custom_authentication_provider.rst
@@ -182,6 +182,13 @@ a 403 Response is returned.
182
does not require maintaining authentication sessions or login forms, it
183
won't be used for this example.
184
185
+.. note::
186
+
187
+ Returning prematurely from the listener is relevant only if you want to chain
188
+ authentication providers (for example to allow anonymous users). If you want
189
+ to forbid access to anonymous users and have a nice 403 error, you should set
190
+ the status code of the response before returning.
191
192
The Authentication Provider
193
---------------------------
194
0 commit comments