Authentication example when use Psr handler

Hello

I set up some Middleware before my controller ( and have to change the controller to PSR handler ), I start work on the login handler Instead login controller and I don’t have access to MVC plugins in the handler.

DO you have any examples of Authentication in handler and Authentication adaptor?

I want to make sure I am in true way in this part

Best

In a controller the identity plugin can be used. This plugin uses the AuthenticationService of laminas-authentication:

So inject the AuthenticationService directly into your handler and you can work with it.

1 Like

thank you very much, I try it tomorrow

Hello, it’s run in handler successfully. I will write detail and publish source code asap