There are 2 independently functioning web applications. Web-app1: (Flutter+Django+Postgres). Web-app2: (Angular+Spring+Postgres). Each of the web-apps has its own user database and are functioning independently. It is now decided to integrate the 2 apps such that Web-app2(Spring) will no more have it's regular users in DB (except for Admin user). Users created in web-app1(Django) will have to login via Angular as client and Spring should authenticate the users and provide all the functionality of Web-app2(Angular+Spring) just like before.
I am thinking of 2 options...
A. Configure Spring such that it directly access the Web-app1's DB. Spring will maintain a login table at its end (Postgres).
B. Spring will request Django API to access Web-App1 user's password+username and create security context.
Both the applications are owned by single team
EDIT: Users created in web-app1(Flutter+Django) will use the app for some Feature A. The same set of users will use web-app2(Spring+Angular) via Angular client for some other Feature B