I'm currently working on a Jhipster prototype application. The application is a simple gateway with a microservice to access data.
Right now, I would like to use an existing database from my company to authenticate users, but Jhispter doesn't seems to supports multiple datasources (and I don't want my whole gateway to switch to another database)
My first idea was to use a microservices to authenticate user. This microservice would run on the other database, but this creates another problem : to call this service from the gateway, I need a JWT token... and this starts to look like I need to be authenticated to authenticate a user.
The other solution, as said before, would be to have two datasources on my gateway : one for user authentication (pointing to the existing database), and the other for Jhipster-related data (audits, etc..)
Do you know what would be the best practice in this case? And can you point me in the right direction for this choice ?