Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is there a way to fail as 401 (Unauthorized) when CAS cookie is missing rather than redirecting? #213

Open
barmintor opened this issue Oct 5, 2023 · 1 comment

Comments

@barmintor
Copy link

My reading of the code here is that there is no configuration to have a CAS-authorized resource to return a HTTP 401 rather than a 302 when there's no valid session; this presents an issue for some long-running web front-ends after activity timeouts (fetched JSON or other assets start returning ambiguous 302) so I want to check with the authoritative source.

@dhawes
Copy link
Contributor

dhawes commented Oct 20, 2023

I believe your reading is correct, at least it looks that way to me. This would be trivial to add, but would likely mean another directive (we're already swimming in them, in my opinion).

Do other CAS clients allow configuration for this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants