Skip to content

fix(Token): take over scope in token refresh with login by cookie - #46640

Merged
juliusknorr merged 1 commit into
masterfrom
fix/noid/google-scope
Jul 22, 2024
Merged

fix(Token): take over scope in token refresh with login by cookie#46640
juliusknorr merged 1 commit into
masterfrom
fix/noid/google-scope

Conversation

@blizzz

@blizzzblizzz commented Jul 19, 2024

Copy link
Copy Markdown
Member

Summary

When logging via cookie, the token was refreshed, but while doing so, the scope was not kept. It was applied from the old token, but not saved in session. This could be typically reproduced per:

  1. Having SAML configured
  2. In any Google browser, log in via SAML
  3. Close the browser
  4. Open the browser again

When running this query SELECT id, scope from oc_authtoken where uid ='USERID' the scope would be empty instead of '{"password-unconfirmable":true,"filesystem":true}'. So, after a while a password confirmation dialogue would open at specific actions, where it is not possible to verify it.

Checklist

Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
@blizzzblizzz added this to the Nextcloud 30 milestone Jul 19, 2024
@blizzz
blizzz requested review from a team, ArtificialOwl, ChristophWurst, juliusknorr, sorbaugh and yemkareems and removed request for a teamJuly 19, 2024 13:59
@blizzz

Copy link
Copy Markdown
MemberAuthor

/backport to stable29

@blizzz

Copy link
Copy Markdown
MemberAuthor

/backport to stable28

@blizzz

Copy link
Copy Markdown
MemberAuthor

/backport to stable27

@blizzz

Copy link
Copy Markdown
MemberAuthor

/backport to stable26

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@blizzz@ChristophWurst@juliusknorr