I am using 2 spring security application, which are registered under single tenant. hence, this is an SSO system. I have put Multi-factor authentication ON(password-username and phone otp message).
the problem is, when i login to first application with otp and credentials, the second application(which was logged in before first application, gets automatically logged out. and when i try to log to that second application it again asks for OTP. Then the first application logs out.
it happens every time when i login or call one service from another,ie when control passes to one application,the other will automatically logs out and will need otp for login.