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

SecHub Server send redirect to login if cookie expired #3892

Open
hamidonos opened this issue Feb 18, 2025 · 0 comments
Open

SecHub Server send redirect to login if cookie expired #3892

hamidonos opened this issue Feb 18, 2025 · 0 comments

Comments

@hamidonos
Copy link
Collaborator

Situation

Currently there is no way to react to expired auth cookies

Wanted

SecHub Server should delete expired cookies and redirect to the login page.

Solution

Idea:

Inside AbstractSecurityConfiguration there is a custom AuthenticationEntryPointwhich handles 401 Unauthorized.

Probably we should extend this handler to check if request is cookie based and then redirect to /login.
For "normal" requests (not cookie-based, Bearer Token, Basic Auth, ...) no redirect should happen. It should just respond with 401 Unauthorized like now.

Other ideas?

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

1 participant