-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
[stable24] invalidate existing tokens when deleting an oauth client #35094
Conversation
/backport to master |
/backport to stable25 |
9db7278
to
6e6978b
Compare
Things in |
@come-nc I could not find anything in OCP that would do the job. |
I believe the last test that is failing is not relevant to the code changes |
Notification is only additional. Not every authtoken has a pushhash entry (only the ones from devices that register for push afterwards). It is also self healing, stray entries from oc_notifications_pushhash are deleted on first push after oc_authtoken got deleted. So ignore that part. It's never used for authentication and basically only in another table to not bloat the oc_authtoken table with columns that are notification app specific.
I would welcome that. Also the current IToken interface does not have all columns, so apps need to even type hint to an actual implementation. |
|
@come-nc sorry I pushed that commit yesterday just before going home from work, I know the unit tests need to be fixed / adjusted. I will try to do that today |
3ea6e54
to
c834874
Compare
(from drone CI, all the other tests passed without error) |
yes I believe the last failing test is not related to my changes |
This is missing one approval... |
moving to 24.0.9 |
/rebase |
Signed-off-by: Artur Neumann <artur@jankaritech.com>
Signed-off-by: Artur Neumann <artur@jankaritech.com>
Signed-off-by: Artur Neumann <artur@jankaritech.com>
Signed-off-by: Artur Neumann <artur@jankaritech.com>
Signed-off-by: Artur Neumann <artur@jankaritech.com>
63fedca
to
c001c4b
Compare
The backport to master failed. Please do this backport manually. |
The backport to stable25 failed. Please do this backport manually. |
When an oauth client is deleted all the existing tokens should be invalidated
fixes #35068
I've created a PR to
stable24
and notmaster
because of #35045 that makes it harder to test the fix