@steven_marshall
The error says there is a mismatch in the settings. I don't use WebWork (I'm going to use it this fall with a third party provider so that I don't have to set up the server), so I cannot comment directly about that. OAuth is not my area of expertise, so if this doesn't help, someone else may have an idea.
Here's what it looks like (all of these pathnames have your testdrive.cas.ou.edu) in front of them.
In Canvas, you're calling /webwork2 but webwork is expecting /webwork2/casit_test5.
For the redirect URI in Canvas, I would try /webwork2/casit_test5
There is probably more to that, though. People have been posting about the redirect URI needs to match exactly although the legacy redirect URI is more lenient. A comment in a GitHub issue talks about the need to match exactly. If your redirect URI is /webwork2 and it's getting called from /webwork2/casit_test5 then it won't match (unless you're using the legacy version). And if you're using /webwork2/casit_test5/login or /webwork2/casit_test5/refresh then you would need to include those in the redirect URI field as well.
Side note: Glad to see someone else is using CAS. I'm trying to upgrade ours from the version we installed in 2012 and the 6.1 documentation is some of the most difficult I've found to understand -- way harder than the Canvas documentation. Maybe if I had been living and breathing the CAS documentation for 7 years, I would understand it better like I do the Canvas stuff. I use CAS to get around our school not having an OAuth server. We use CAS to log into Canvas and I put my Wordpress site behind CAS in Apache and so I'm able to get my user information through CAS when the WordPress plugins didn't work.
This discussion post is outdated and has been archived. Please use the Community question forums and official documentation for the most current and accurate information.