In routes I have
Router::connect('/opauth-complete/*', array('controller' => 'app_users', 'action' => 'opauth_complete'));
If I change pointer to controller app_users
with anything else and create controller everything works with no error. But I need it to work with AppUsersController
.
AppUsersController looks like this
App::uses('UsersController', 'Users.Controller');
class AppUsersController extends UsersController {
public function beforeFilter() {
parent::beforeFilter();
$this->User = ClassRegistry::init('AppUser');
}
// ...
// ...
public function opauth_complete() {
die(1);
}
// ...
// ...
}
So, plugin is CakeDC Users and another plugin that goes to /example/callback
after /example/auth/facebook
is Opauth plugin.
Error message looks like this
The request has been black-holed
Error: The requested address '/example/opauth-complete' was not found on this server.
This is perfectly possible to make these two plugins work together; when browser points to /example/auth/facebook
, it redirects to /example/auth/callback
and somehow it needs opauth-complete
route to link to specific method.
All works if not pointed to app_users
that extends plugin, uses plugin. Does not work only with this case. How can users of these two plugins get around such situation.