You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/en/middleware.rst
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -226,10 +226,10 @@ add other ``Authorization\Exception\Exception`` based exceptions to the
226
226
227
227
'exceptions' => [
228
228
MissingIdentityException::class,
229
-
ForbiddenException::class
229
+
ForbiddenException::class,
230
230
],
231
231
232
-
See the `RedirectHandler source <https://github.com/cakephp/authorization/blob/2.next/src/Middleware/UnauthorizedHandler/RedirectHandler.php>`__
232
+
See the `RedirectHandler source <https://github.com/cakephp/authorization/blob/3.x/src/Middleware/UnauthorizedHandler/RedirectHandler.php>`__
233
233
234
234
Configuration options are passed to the handler's ``handle()`` method as the
235
235
last parameter.
@@ -279,7 +279,7 @@ How to create a custom UnauthorizedHandler
279
279
'queryParam' => 'redirectUrl',
280
280
'exceptions' => [
281
281
MissingIdentityException::class,
282
-
ForbiddenException::class
282
+
ForbiddenException::class,
283
283
],
284
284
'custom_param' => true,
285
285
],
@@ -291,5 +291,5 @@ This is, because we extend our handler based on the RedirectHandler present in t
291
291
292
292
The ``custom_param`` appears in the ``$options`` array given to you in the ``handle()`` function inside your ``CustomRedirectHandler`` if you wish to add some more config parameters to your functionality.
293
293
294
-
You can look at `CakeRedirectHandler <https://github.com/cakephp/authorization/blob/2.next/src/Middleware/UnauthorizedHandler/CakeRedirectHandler.php>`__ or `RedirectHandler <https://github.com/cakephp/authorization/blob/2.next/src/Middleware/UnauthorizedHandler/RedirectHandler.php>`__
294
+
You can look at `CakeRedirectHandler <https://github.com/cakephp/authorization/blob/3.x/src/Middleware/UnauthorizedHandler/CakeRedirectHandler.php>`__ or `RedirectHandler <https://github.com/cakephp/authorization/blob/3.x/src/Middleware/UnauthorizedHandler/RedirectHandler.php>`__
0 commit comments