Im green to KeyCloak; Wanted to thank the community for it, so far looking
I have an issue where I want to redirect the user the loginpage on the
KeyCloak server programmatically in Java;
the UseCase is:
We have a page that is partially visible and partiallly not (when not
logged in), so I can't protect it with url pattern;
We have a login button on that page that when the user is not logged and
pressed the button, we want to redirect to the loginpage (on keycloak) and
back to the page again.
I'm using the KeyCloak adapter core (running on tomcat8)
[image: Inline afbeelding 2]
I coppied this code from the: KeycloakOIDCFilter (
it does show a 302 in the logs but the page doesn't redirect;
Anyone has a clue about how to go about this?