Laminas Authentication login TTL/persistence

That is the factory for your controller. We need to see the factory for the AuthenticationService. In this factory you are setting up the adapter, which should be handled in the AuthenticationService factory (usually).

How are you checking to see if the identity is still authenticated?

Do you have laminas-di installed in this project?

If there was an AuthenticationService factory present I would expect to see something like this in your controller factory.

$auth = $container->get(AuthenticationService::class);

You need a factory for the AuthenticationService just like you need a factory for the controller.

Here is a link to a factory for the AuthenticationService from a couple years back where @froschdesign helped me with a related issue regarding the AuthenticationService.