Aaron,

What kind of client are you talking about?
Describe your setup and why there is a change in port.
Include some of the log.

Ray
________________________________
From: 'Aaron Chantrill' via CAS Community <[email protected]>
Sent: May 12, 2025 12:26
To: [email protected] <[email protected]>
Subject: [cas-user] invalid cookie. Required remote address does not match

After upgrading from 6.6 to 7.2, my users are occasionally getting an error 
screen saying
"Unauthorized Access" and listing "screen.pac4j.authn.AuthenticationException" 
as the cause.

When I look at the CAS log, I'm seeing the error as listed above, with two full 
IP addresses with ports. The ip addresses match, but the ports don't. It looks 
like for some reason, CAS is expecting the same port to be used for the initial 
request and the authentication request, but the client is changing the port 
they are talking on.

Is there an easy way to either disable this check or set it to only check the 
ip address and not the port, or do I have to override the 
obtainValueFromCompoundCookie() method from DefaultCasCookieValueManager, which 
is where the error appears to be coming from?

It looks like I could disable the ip address check completely if I can set the 
cookieProperties.isGeoLoateClientSession() value to false, but I'm not sure how 
to do that. I tried setting cas.tgc.geo-locate-client-session to false in my 
cas.properties file, but I'm not sure if that will work or not and don't have a 
way to test it.

Thank you,
--
Aaron Chantrill
ID: 000490892
BS Computer Science (1/1/2019)
Tom Grant
c  304-445-5230 US Eastern Time
[email protected]<mailto:[email protected]>


--
- Website: https://apereo.github.io/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 [email protected]<mailto:[email protected]>.
To view this discussion visit 
https://groups.google.com/a/apereo.org/d/msgid/cas-user/CAJt4T%3DtcTUvzXMOKoZDj%3DDaXsEA9Pso-3A0MK%3DXL3UM21FxQaw%40mail.gmail.com<https://groups.google.com/a/apereo.org/d/msgid/cas-user/CAJt4T%3DtcTUvzXMOKoZDj%3DDaXsEA9Pso-3A0MK%3DXL3UM21FxQaw%40mail.gmail.com?utm_medium=email&utm_source=footer>.

-- 
- Website: https://apereo.github.io/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 [email protected].
To view this discussion visit 
https://groups.google.com/a/apereo.org/d/msgid/cas-user/YQBP288MB0081F1E638D0BE2AF95B6E41CE97A%40YQBP288MB0081.CANP288.PROD.OUTLOOK.COM.

Reply via email to