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

Invalidate cached user on changes #5843

Merged
merged 1 commit into from
May 23, 2024

Conversation

wsmirnow
Copy link
Contributor

In certain circumstances, you may want to configure multiple authentication mechanisms in Opencast, but with the same user source. For example, a user should be able to log in using Shibboleth and also using JWT from an external trusted application. In this case, the user roles should be merged. This is handled correctly by Opencast. User data is then cached for performance reasons. However, on the first request using a different login mechanism, the user details should be set correctly, but the old cached user details are used instead. All subsequent requests are fine. This patch should fix that.

Your pull request should…

In certain circumstances, you may want to configure multiple authentication mechanisms in Opencast, but with the same user source. For example, a user should be able to log in using Shibboleth and also using JWT from an external trusted application. In this case, the user roles should be merged. This is handled correctly by Opencast. User data is then cached for performance reasons. However, on the first request using a different login mechanism, the user details should be set correctly, but the old cached user details are used instead. All subsequent requests are fine. This patch should fix that.
@gregorydlogan gregorydlogan self-assigned this May 23, 2024
@gregorydlogan gregorydlogan merged commit ccee6ef into opencast:r/14.x May 23, 2024
4 checks passed
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

Successfully merging this pull request may close these issues.

None yet

2 participants