Using Two Authentication Methods Simultaneously (Digest and JWT)

Hello everyone, I have been tinkering around with Cakephp for a while, I’m developing an API with JWT. I finally managed to make it work, but I want to use JWT for the API only and use Digest for the website.

I basically have two AppControllers one inside the controllers folder and the other one inside de API subfolder. I thought it was possible but it looks like I can only use one. I was having issues with the Digest authentication until I realize that the trace log ended in my ADmad JWT authentication file.

PD: On a side note I might have found a bug, do I report it to the Github page?

Ok, it is totally posible I was having issues because I was importing the same base AppController.php in the controllers, you must import the corresponding one inside each controller subfolder.