[keycloak-user] Redirect Programmatically to the Loginpage
bruno at abstractj.org
Wed Jul 27 06:56:35 EDT 2016
Hi Alex, please take a look a the examples here.
 - https://github.com/redhat-developer/redhat-sso-quickstarts
On 2016-07-26, Alex Fernandes wrote:
> 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?
> Much Appreciated,
> keycloak-user mailing list
> keycloak-user at lists.jboss.org
More information about the keycloak-user