Use of # in service URL

36 views
Skip to first unread message

Shawn Cutting

unread,
Feb 18, 2021, 12:09:15 PM2/18/21
to CAS Community

Good Day,
I am running into an issue with a service URL that includes a "#"... example like this:
The issue is that after CAS authenticates, it is returning the URL of:
(note the #/login-page at the end of the ST info).  How can I get CAS to return back to the original URL?

Thanks for your insight.
Shawn

Ray Bon

unread,
Feb 18, 2021, 3:24:29 PM2/18/21
to cas-...@apereo.org
Shawn,

Is the '#' really bare like that? And the continuation of the path, '/login-page', following it?

Is it possible for the client to encode the url (this may / may not would work)?

Ray

On Thu, 2021-02-18 at 09:09 -0800, Shawn Cutting wrote:
Notice: This message was sent from outside the University of Victoria email system. Please be cautious with links and sensitive information.
-- 
Ray Bon
Programmer Analyst
Development Services, University Systems

I respectfully acknowledge that my place of work is located within the ancestral, traditional and unceded territory of the Songhees, Esquimalt and WSÁNEĆ Nations.

Cutting, Shawn

unread,
Feb 18, 2021, 4:44:12 PM2/18/21
to cas-...@apereo.org
Thanks for your input, Ray.  Yes, that is how the URL is.  I have a request into the client to see if there is a way to eliminate the #.

Shawn

On Feb 18, 2021, at 3:24 PM, Ray Bon <rb...@uvic.ca> wrote:

[***CAUTION*** This email originated from outside of Messiah University]
--
- 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 a topic in the Google Groups "CAS Community" group.
To unsubscribe from this topic, visit https://groups.google.com/a/apereo.org/d/topic/cas-user/7ER2rRA95ug/unsubscribe.
To unsubscribe from this group and all its topics, send an email to cas-user+u...@apereo.org.
To view this discussion on the web visit https://groups.google.com/a/apereo.org/d/msgid/cas-user/edb12f0738abcc54371b522bcd923db974bef07e.camel%40uvic.ca.

Priyanka Choudhary

unread,
Oct 28, 2022, 9:55:29 AM10/28/22
to CAS Community, Cutting, Shawn
I see this as part of 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).
In getRedirectResponse method does what you are saying. I am not sure if url encoding can handle this.
Reply all
Reply to author
Forward
0 new messages