Skip to content
Permalink
Browse files

Deprecate the requireAuth feature.

Its a pretty unintuitive feature, that doesn't work well and should stop
existing.

Refs cakephp/docs#3726
  • Loading branch information...
markstory committed Feb 5, 2016
1 parent f81d6d1 commit e6493325eae490adb416cb22031f3bcd1123f2e9
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/Controller/Component/SecurityComponent.php
@@ -42,7 +42,7 @@ class SecurityComponent extends Component
* - `blackHoleCallback` - The controller method that will be called if this
* request is black-hole'd.
* - `requireSecure` - List of actions that require an SSL-secured connection.
* - `requireAuth` - List of actions that require a valid authentication key.
* - `requireAuth` - List of actions that require a valid authentication key. Deprecated as of 3.2.2
* - `allowedControllers` - Controllers from which actions of the current
* controller are allowed to receive requests.
* - `allowedActions` - Actions from which actions of the current controller
@@ -161,6 +161,7 @@ public function requireSecure($actions = null)
*
* @param string|array $actions Actions list
* @return void
* @deprecated 3.2.2 This feature is confusing and not useful.
*/
public function requireAuth($actions)
{
@@ -230,6 +231,7 @@ protected function _secureRequired(Controller $controller)
*
* @param \Cake\Controller\Controller $controller Instantiating controller
* @return bool true if authentication required
* @deprecated 3.2.2 This feature is confusing and not useful.
*/
protected function _authRequired(Controller $controller)
{

0 comments on commit e649332

Please sign in to comment.
You can’t perform that action at this time.