Skip to content

fix(Session): Prevent immediate token invalidation#58555

Open
solracsf wants to merge 1 commit intomasterfrom
preventTokenInvalidation
Open

fix(Session): Prevent immediate token invalidation#58555
solracsf wants to merge 1 commit intomasterfrom
preventTokenInvalidation

Conversation

@solracsf
Copy link
Member

Summary

This PR addresses issue #56412 where app passwords (device tokens) generated via occ user:auth-tokens:add, or used in SSO/LDAP environments, are unexpectedly and permanently invalidated exactly 5 minutes after creation.

This correctly logs the user out for that specific session without permanently destroying valid tokens generated by admins or used by SSO users. Legitimate password changes or user deletions will still trigger the expected permanent invalidation.

Checklist

@solracsf solracsf added this to the Nextcloud 34 milestone Feb 24, 2026
@solracsf solracsf requested a review from a team as a code owner February 24, 2026 18:32
@solracsf solracsf added the bug label Feb 24, 2026
@solracsf solracsf requested review from ArtificialOwl and icewind1991 and removed request for a team February 24, 2026 18:32
@solracsf solracsf added the 3. to review Waiting for reviews label Feb 24, 2026
@solracsf solracsf requested review from come-nc and sorbaugh February 24, 2026 18:32
Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant