[keycloak-user] Too many redirects with remember me checked

Amritha Amarnath amritha_amarnath at amritatech.com
Mon Oct 8 06:26:26 EDT 2018




Thanks, 


Application's redirect path configured in keycloak is http://<ipAddr>:8080>/medvisionapp/* and access the same with http://<ipAddr>:8080>/medvisionapp/ , is actually redirects to either /medvisionapp/view/MOBILE.html#search or /medvisionapp/view/desk.html#dsearch depending on screen width. 



Eg : 

http:// <ipAddr> :8080/auth/realms/dcm4che/protocol/openid-connect/auth?client_id=medvisionapp&redirect_uri =http%3A%2F%2F <ipAddr> %3A8080%2Fmedvisionapp%2Fview%2Fdesk.html%23dsearch &state=f8687b35-092f-4d78-82de-553b2af49057&response_mode=fragment&response_type=code&scope=openid&nonce=8fc3449b-6488-4417-a9c5-8df58e578937 



But when the 'too many direct issue' occurs, in the browser console the redirect path in the url is the one that configured in keycloak. 



Eg: 

http://<ipAddr>:8080/auth/realms/dcm4che/protocol/openid-connect/auth?response_type=code&client_id=medvisionapp&redirect_uri= http%3A%2F%2F <ipAddr> %3A8080%2Fmedvisionapp% 2F&state=250229a7-0d03-4309-8747-6ca201a44473&login=true&scope=openid 


Am i doing anything wrong in the configuration? 



-- With Regards, 
Amms 


----- Original Message ----- 
From: "Amritha Amarnath" <amritha_amarnath at amritatech.com> 
To: "Martin Kanis" <mkanis at redhat.com> 
Cc: keycloak-user at lists.jboss.org 
Sent: Friday, October 5, 2018 3:45:30 PM GMT +05:30 Chennai, Kolkata, Mumbai, New Delhi 
Subject: Re: [keycloak-user] Too many redirects with remember me checked 



Hello , 



Application is using keycloak-4.1.0.Final . For keycloak log please find attachment 



-- 
With Regards, 
Amms 



----- Original Message ----- 
From: "Martin Kanis" <mkanis at redhat.com> 
To: "amritha amarnath" <amritha_amarnath at amritatech.com> 
Cc: keycloak-user at lists.jboss.org 
Sent: Friday, October 5, 2018 2:02:36 PM GMT +05:30 Chennai, Kolkata, Mumbai, New Delhi 
Subject: Re: [keycloak-user] Too many redirects with remember me checked 


Hello, 


what version of Keycloak do you have? Can you provide a Keycloak log? 


Regards, 
Martin 


On Fri, Oct 5, 2018 at 8:51 AM Amritha Amarnath < amritha_amarnath at amritatech.com > wrote: 





Hello, 


My application have been deployed in Wildfly 11 and is integrated with standalone Keycloak and works fine. But the issue is, when the application is logged in with Remember-me checkbox checked, its showing too many redirects when restart the browser , even though the user session is valid. It leads to logout my application session manually from keycloak admin console. 

Wildfly log says: Account was not in session, returning null , there was no code 


Once the user session also get expired its showing the login page with pre-filled username and remember-me checked as expected. 


I am new to keycloak. So any idea regarding too many redirects with remember-me checked ? 

-- 
With Regards, 
Amms 





_______________________________________________ 
keycloak-user mailing list 
keycloak-user at lists.jboss.org 
https://lists.jboss.org/mailman/listinfo/keycloak-user 










More information about the keycloak-user mailing list