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

[LTD-775] Session Termination #172

Merged
merged 1 commit into from Apr 16, 2021
Merged

Conversation

alixedi
Copy link
Contributor

@alixedi alixedi commented Apr 15, 2021

During pen tests, we found that even when a user account was terminated on the SSO, the user would still be able to access LITE using browser cookies.

Other DIT services get around this by using introspection middleware. This middleware hits the introspection endpoint on the SSO service and caches the response for a small amount of time.

We are doing something very similar for LITE.

P.S. It's not introspection technically because we are not using the /o/introspect endpoint from the SSO service. In the case of staff-sso, it is because this endpoint requires a different token. For the case of directory-sso, I haven't been able to find an endpoint for introspection.

@alixedi alixedi force-pushed the LTD-775-session-termination branch 9 times, most recently from 135b853 to 009e252 Compare April 15, 2021 14:14
@alixedi alixedi marked this pull request as ready for review April 15, 2021 14:14
@alixedi alixedi force-pushed the LTD-775-session-termination branch 2 times, most recently from d5e621a to 6c69c7a Compare April 16, 2021 12:33
core/middleware.py Outdated Show resolved Hide resolved
@r4vi
Copy link
Contributor

r4vi commented Apr 16, 2021

only one small comment from me, not required to merge but up to you...

@alixedi alixedi force-pushed the LTD-775-session-termination branch from 6c69c7a to fb0a01a Compare April 16, 2021 14:22
@alixedi alixedi merged commit a4e7658 into master Apr 16, 2021
@alixedi alixedi deleted the LTD-775-session-termination branch April 16, 2021 14:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants