We have
- KeyCloak (OpenID Connect)
- 1x Rich client (with keycloak java adapter)
- 1x WebClient SPA (with keycloak javascript adapter)
Both applications are public and in the same realm, but have different Client IDs. Ве would like to implement SSO (Single Sign On) consider the following scenario: The user make login with user/password in rich client and the rich client receives JWT (AccessToken, IdToken adn RefreshToken). Now user from rich calls webclient (with a deep link) and it opens a web browser. Because the webclient does not have yet access token it redirect users to keycloak (OpenID Connect/OAuth 2.0) login page.
What would be the correct way to implement SSO so that webclient is authenticated automatically with the credentionals from the rich cleint?
We do not have Username/Password after login any more, only the Tokens.