Any CAS + Canvas schools having problems with frequent Canvas session timeouts?

84 views
Skip to first unread message

Mike Osterman

unread,
Aug 21, 2020, 10:43:23 PM8/21/20
to cas-...@apereo.org
Disclaimer: I know this is a CAS list, not a Canvas list, but the combination of the two is having issues, and I've run out of road working with Instructure support.

Late last semester, we started experiencing issues where Canvas users were getting logged out frequently. I believe it started around the time that we switched Canvas from CAS 3.x to our CAS 5.3.x IdP. We also made the switch from defaulting login to CAS for all users, where external "guest" accounts had to know the native Canvas account login URL, to the Discovery page setup, where users are presented with Door #1 (Institutional SSO) and Door #2 (native Canvas accounts).

I worked with Instructure support, and they insisted that the cause was our CAS server, which doesn't track with the pattern I see with most CASified applications: app redirect to CAS to authenticate and get returned some attributes, but upon successful login flow, the app manages its own internal session state and timeout.  

That said, in testing out a different CAS IdP implementation with Canvas provided by Technolutions in the Slate platform, I learned that the CAS client that Canvas uses only uses proxyValidate. (The Slate IdP only supports /serviceValidate). I'm not sure this is in any way related, but it's another data point.

Finally, we had Instructure hard-code our Canvas application session timeout to 8 hours, which has had zero impact on the short session timeouts in CAS.

Has anyone else dealt with this issue with CAS + Canvas, and better still, solved it?

Thanks for any and all pointers, suggestions, etc.

-Mike

Elijah Gagne

unread,
Aug 21, 2020, 11:25:00 PM8/21/20
to CAS Community, Mike Osterman
Just as another data point, we're using CAS 6.1.7 using a SAML integration with Canvas. We don't have any session timeout issues. 
Regards, 
EWG

Mike Osterman

unread,
Aug 21, 2020, 11:36:53 PM8/21/20
to Elijah Gagne, CAS Community
Thanks, Elijah! I did wonder if I ought to switch to SAML instead. Are you using a Discovery URL as well?

Elijah Gagne

unread,
Aug 21, 2020, 11:53:20 PM8/21/20
to CAS Community, Mike Osterman, CAS Community, Elijah Gagne
We do not have a Discovery URL defined. 
-EWG

Ray Bon

unread,
Aug 24, 2020, 12:42:00 PM8/24/20
to cas-...@apereo.org
Mike,

This sounds like a proxy failure. The user successfully logs in, but when a proxy ticket is required, there is a failure and the user is returned to the log in page (am I understanding correctly?).

Check your access logs for Canvas and cas to see if communication is successful when a PT is needed.
You can use the below to get some logging from cas:

<!-- see what cas is sending / receiving -->
        <AsyncLogger name="org.apache.http" level="debug" />

        <!-- DEBUG Response code from server matched [###] may be useful for debugging proxy
                   Created HTTP post message payload [POST URL] on logout -->
        <AsyncLogger name="org.apereo.cas.util.http.SimpleHttpClient" level="error" />

Ray
-- 
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.

Mike Osterman

unread,
Aug 24, 2020, 1:12:57 PM8/24/20
to CAS Community
Thanks, Ray! I appreciate the pointer. It's nice to have another lead to chase down. 

--
- 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+u...@apereo.org.
To view this discussion on the web visit https://groups.google.com/a/apereo.org/d/msgid/cas-user/11b6ce7d3ad57e30b5448244d6ef02f1c8f1617e.camel%40uvic.ca.
Reply all
Reply to author
Forward
0 new messages