I am developing an application which has APIs developed in JAVA SpringBoot. These are pure REST APIs. The frontend is developed in React.
I am supposed to add authentication in React in such a way that - it uses Keycloak as IDP for user authentication before accessing SpringBoot APIs.
So far, I have seen that Keycloak can support keycloak.js which is JavaScript adapter for OPEN ID connect. But I want the solution for SAML 2.0.
Is there a way I can add SAML 2.0 SSO in React app?
Also one more question:
- Application A is configured with SAML as authentication protocol in keycloak.
- Application B is configured with OPEN ID connect as authentication protocol in keycloak and has permission to access Application A.
If a user authenticates to application B using OpenID connect and then tries to access Application A, will user be able to access Application A seamlessly or it will ask for authenticate again?