We currently have a new microservice that handles authentication, authorization (RBAC), and KYC as part of our v2 architecture.
We also have an older legacy system (v1) which is fully monolithic — everything (auth, business logic, ticketing, etc.) is inside one project.
Now we want:
The legacy v1 system to use the new authentication & KYC microservice (v2).
Our ticketing service (also part of v1) to use the same v2 identity service.
What is the best and most secure way to connect/integrate the legacy monolithic system with the new microservices (especially for login, JWT generation, permission checks, and KYC callbacks)?
Should we use REST, gRPC, message queues, or another approach?
Any architectural guidance would be appreciated.