Re: [cas-user] Weird behaviour with # in service url
This is still the case. I checked the code: https://github.com/apereo/cas/blob/master/core/cas-server-core-services-authentication/src/main/java/org/apereo/cas/authentication/principal/DefaultResponse.java This behaviour is coded in getRedirectResponse. On Fri, Oct 28, 2022 at 7:41 PM Pascal Rigaux wrote: > Hi, > > The behaviour you describe used to be possible in old CAS, but it's not > possible anymore. > > The question is: why you need this? > > > And IMHO you should not encode the hash param. ie, you should use login > url: > > > https://10.20.30.40/login?service=https%3A%2F%2F10.20.30.40%2F#/app-dashboard/ > > The "#/app-dashboard/" part will be added through 302 redirects. > > And should even be kept on password login FORM (thanks to > "preserveAnchorTagOnForm" js) > > > cu > > > On 28/10/2022 09:25, Priyanka Choudhary wrote: > > Hi, > > > > I have service id as: > > > > "serviceId" : "^(https|imaps|http)://.*/#/app-dashboard/", > > > > and I am using url for login as > > > > > https://10.20.30.40/login?service=https%3A%2F%2F10.20.30.40%2F%23%2Fapp-dashboard%2F > > > > and 302 redirect I see as > > > > https://10.20.30.40/?redirect=true=xxygg#/app-dashboard/ > > > > But it should be > > > > https://10.20.30.40/#/app-dashboard/?redirect=true=xxygg. > > > > Please let me know how to fix it. > > > > Thank you. > > -- > - Website: https://apereo.github.io/cas > - Gitter Chatroom: https://gitter.im/apereo/cas > - List Guidelines: https://goo.gl/1VRrw7 > - Contributions: https://goo.gl/mh7qDG > --- > You received this message because you are subscribed to the Google Groups > "CAS Community" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to cas-user+unsubscr...@apereo.org. > To view this discussion on the web visit > https://groups.google.com/a/apereo.org/d/msgid/cas-user/11101481-0358-d290-fe25-158e4043af11%40univ-paris1.fr > . > -- - Website: https://apereo.github.io/cas - Gitter Chatroom: https://gitter.im/apereo/cas - List Guidelines: https://goo.gl/1VRrw7 - Contributions: https://goo.gl/mh7qDG --- You received this message because you are subscribed to the Google Groups "CAS Community" group. To unsubscribe from this group and stop receiving emails from it, send an email to cas-user+unsubscr...@apereo.org. To view this discussion on the web visit https://groups.google.com/a/apereo.org/d/msgid/cas-user/CAK5qmuM8Rxa6MEQhrU6kGO4WRDzXmbkHVaG0L7Tp8gaRDVHsog%40mail.gmail.com.
Re: [cas-user] Weird behaviour with # in service url
Hi, The behaviour you describe used to be possible in old CAS, but it's not possible anymore. The question is: why you need this? And IMHO you should not encode the hash param. ie, you should use login url: https://10.20.30.40/login?service=https%3A%2F%2F10.20.30.40%2F#/app-dashboard/ The "#/app-dashboard/" part will be added through 302 redirects. And should even be kept on password login FORM (thanks to "preserveAnchorTagOnForm" js) cu On 28/10/2022 09:25, Priyanka Choudhary wrote: Hi, I have service id as: "serviceId" : "^(https|imaps|http)://.*/#/app-dashboard/", and I am using url for login as https://10.20.30.40/login?service=https%3A%2F%2F10.20.30.40%2F%23%2Fapp-dashboard%2F and 302 redirect I see as https://10.20.30.40/?redirect=true=xxygg#/app-dashboard/ But it should be https://10.20.30.40/#/app-dashboard/?redirect=true=xxygg. Please let me know how to fix it. Thank you. -- - Website: https://apereo.github.io/cas - Gitter Chatroom: https://gitter.im/apereo/cas - List Guidelines: https://goo.gl/1VRrw7 - Contributions: https://goo.gl/mh7qDG --- You received this message because you are subscribed to the Google Groups "CAS Community" group. To unsubscribe from this group and stop receiving emails from it, send an email to cas-user+unsubscr...@apereo.org. To view this discussion on the web visit https://groups.google.com/a/apereo.org/d/msgid/cas-user/11101481-0358-d290-fe25-158e4043af11%40univ-paris1.fr.
[cas-user] Weird behaviour with # in service url
Hi, I have service id as: "serviceId" : "^(https|imaps|http)://.*/#/app-dashboard/", and I am using url for login as https://10.20.30.40/login?service=https%3A%2F%2F10.20.30.40%2F%23%2Fapp-dashboard%2F and 302 redirect I see as https://10.20.30.40/?redirect=true=xxygg#/app-dashboard/ But it should be https://10.20.30.40/#/app-dashboard/?redirect=true=xxygg. Please let me know how to fix it. Thank you. -- - Website: https://apereo.github.io/cas - Gitter Chatroom: https://gitter.im/apereo/cas - List Guidelines: https://goo.gl/1VRrw7 - Contributions: https://goo.gl/mh7qDG --- You received this message because you are subscribed to the Google Groups "CAS Community" group. To unsubscribe from this group and stop receiving emails from it, send an email to cas-user+unsubscr...@apereo.org. To view this discussion on the web visit https://groups.google.com/a/apereo.org/d/msgid/cas-user/bc52b46a-ad2e-4303-a0c0-8924a78a5439n%40apereo.org.