Use of laminas-authorization in a Mezzio application

I tried to use CredentialTreatmentAdapter for authentication in a Mezzio application. Some error occurs into method authentication() and no Exception is generated. Nothing appears in error log. Application aborts and web server delivers an error HTTP 500. I thought it could be because SessionMiddleware was not enabled, but event after enabling it, the error persists. Is there some special configuration for using this db adapter in Mezzio? I know that there is a specific component for Mezzzio, but I believe that it must be possible to use any decoupled Laminas component.