I'm trying to implement noelbundick's CAS authentication for Owin in my MVC 5 application, but with a twist. We want this to be the only way you can log in or out, so we started the application with no authentication, and used this tutorial to set up all the authentication, also using another new solution with the built-in external authentication just as a way to compare what I'm doing.

So I've switched out all the google stuff with CAS stuff, and everything works great, except for some reason, the logout button doesn't work. Specifically, the action here

seems to skip over the SignOut() function, and go straight to the RedirectToAction(). I'll give you some more code that may help, but I'm really not sure what else could help. The references in the first paragraph have all the code that I've used, along with any default code from whatever Visual Studio gives you on a basic MVC site with external authentication.

To be clear, I don't need it to log off of the CAS server, just the website. It's fine if the CAS cookie remains. The problem is that it still says "Welcome, User!" and "Log off" at the top.

Please let me know if there's anything else I can give you that would help. I've googled everything and can't find a solution online or on StackOverflow, but that may be because I didn't google the correct terms as well, so that's also welcome.