[keycloak-user] Default Redirect URL is not working

Bill Burke bburke at redhat.com
Wed Apr 1 08:16:48 EDT 2015


Default URL is for when no redirect URL is provided to Keycloak at 
login.  For SAML, you have to be redirected back to the service URL or 
login won't complete successfully.

On 4/1/2015 6:26 AM, Chen Keong Yap wrote:
> Hi,
>
> I've configured Default Redirect
> URL=http://localhost:8080/employee/test.jsp in keycloak (1.1.0 beta2)
> admin console. When i access ServiceURL, the request is redirected to
> keycloak
> login page. After authentication is successful then keycloak redirected
> to ServiceURL instead of Default Redirect URL. Can someone please advise?
>
> Picketlink.xml :
>
> <PicketLink xmlns="urn:picketlink:identity-federation:config:2.1">
> <PicketLinkSP xmlns="urn:picketlink:identity-federation:config:2.1"
> ServerEnvironment="tomcat" BindingType="REDIRECT" RelayState="someURL">
> <IdentityURL>${idp.url::https://localhost:8443/auth/realms/saml-demo-1/protocol/saml}</IdentityURL>
> <ServiceURL>${EMPLOYEE.url::http://localhost:8080/employee/}
> </ServiceURL>
> </PicketLinkSP>
> <Handlers xmlns="urn:picketlink:identity-federation:handler:config:2.1">
> <Handler
> class="org.picketlink.identity.federation.web.handlers.saml2.SAML2LogOutHandler"
> />
> <Handler
> class="org.picketlink.identity.federation.web.handlers.saml2.SAML2AuthenticationHandler">
> </Handler>
> <Handler
> class="org.picketlink.identity.federation.web.handlers.saml2.RolesGenerationHandler"
> />
> </Handlers>
> </PicketLink>
>
>
>
>
> _______________________________________________
> keycloak-user mailing list
> keycloak-user at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/keycloak-user
>

-- 
Bill Burke
JBoss, a division of Red Hat
http://bill.burkecentral.com


More information about the keycloak-user mailing list