I use Spring Boot and Spring Security 6.1.3 together with Keycloak to authenticate my users. Frontend is done using Angular and handled by SpringBoot as well (as a static resource).
Basic authentication flow works fine, but I want to implement either of the following options when user presses sign-up button:
- A new window with Keycloak page opens above the current one and the user authenticated there and the window closes when the authentication is done successful.
- Or after pressing and authenticated with Keycloak user is redirected to the exactly same URL that they had before pressing the sign up button.
Is it possible to implement either of these options?
So far I open a new window with Keycloak authentication page, but cannot close it. Or I just get redirected to a root URL instead of the one I was before pressing signup button..