Description
Hello,
We have a large existing project, which uses the ZfcUser module and authentication. Now we must develop a REST API for mobile application and would like to use Apigility with OAuth2 authentication, but still reusing the existing project's code and users.
We are considering to add the REST API in its own module in the existing project to be able to reuse its modules and services. That's why I would like to ask is it possible to use the ZfcUser authentication adapter and LdcZfcUserOAuth2 in the same project?
I see in the LdcZfcUserOAuth2 Readme that we need to override the authentication adapter used by ZfcUser in order to use this one. But can we have them both together and they work with different priorities? Or even allow the LdcZfcUserOAuth2 only for our API module and leave the ZfcUser adapter for all other modules?
Any advice and suggestion how can we do this and connect our API with our existing code will be much appreciated!
Thank you in advance.