-
Notifications
You must be signed in to change notification settings - Fork 29
Logout Everywhere #8850
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
Merged
Merged
Logout Everywhere #8850
Changes from all commits
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
48005dd
Logout Everywhere
fm3 84d3847
changelog
fm3 fa0a757
Merge branch 'master' into logout-everywhere
fm3 cd8603c
adapt test db
fm3 db00d9d
Merge branch 'master' into logout-everywhere
knollengewaechs aa2ddcf
add account setting card to logout everywhere
knollengewaechs 5601188
after resetting pw and email, logout user everywhere
knollengewaechs 26c8704
rename account password to account security page
knollengewaechs 9c1ed36
catch error
knollengewaechs 98c4eac
add error toast for 401 hppt codes
knollengewaechs 569259c
move error toast to tsx module
knollengewaechs a1b1d8c
fix imports
knollengewaechs 2974cce
move react using function to new module
knollengewaechs 4ee7c36
Merge branch 'master' into logout-everywhere
knollengewaechs 0607eee
dont show error toast for sharing link requests
knollengewaechs 2ba5c9a
clean up code
knollengewaechs 85dc08b
address coderabbit review
knollengewaechs f4164ed
use replace for legacy routes
knollengewaechs d1fa0f8
When logging out everywhere, also invalidate DataStore tokens
fm3 ad16619
address review: add comment and use confirm rather than modal
knollengewaechs 86661fb
Merge branch 'master' into logout-everywhere
knollengewaechs fe47435
add replace for every <navigate>
knollengewaechs f622925
fix publications redirect
knollengewaechs 8d5df9b
exchange SecuredAction for UserAwareAction when creating shortLink
knollengewaechs ef2e01e
remove application.conf edit and fix replace for keyboard shortcuts
knollengewaechs 4cd0f7a
fix login redirect
knollengewaechs 7385b22
Merge branch 'master' into logout-everywhere
fm3 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
START TRANSACTION; | ||
|
||
do $$ begin ASSERT (select schemaVersion from webknossos.releaseInformation) = 138, 'Previous schema version mismatch'; end; $$ LANGUAGE plpgsql; | ||
|
||
DROP VIEW webknossos.userInfos; | ||
DROP VIEW webknossos.users_; | ||
|
||
ALTER TABLE webknossos.users ADD COLUMN loggedOutEverywhereTime TIMESTAMPTZ; | ||
|
||
CREATE VIEW webknossos.users_ AS SELECT * FROM webknossos.users WHERE NOT isDeleted; | ||
|
||
CREATE VIEW webknossos.userInfos AS | ||
SELECT | ||
u._id AS _user, m.email, u.firstName, u.lastname, o.name AS organization_name, | ||
u.isDeactivated, u.isDatasetManager, u.isAdmin, m.isSuperUser, | ||
u._organization, o._id AS organization_id, u.created AS user_created, | ||
m.created AS multiuser_created, u._multiUser, m._lastLoggedInIdentity, u.lastActivity, m.isEmailVerified | ||
FROM webknossos.users_ u | ||
JOIN webknossos.organizations_ o ON u._organization = o._id | ||
JOIN webknossos.multiUsers_ m on u._multiUser = m._id; | ||
|
||
UPDATE webknossos.releaseInformation SET schemaVersion = 139; | ||
|
||
COMMIT TRANSACTION; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
START TRANSACTION; | ||
|
||
do $$ begin ASSERT (select schemaVersion from webknossos.releaseInformation) = 139, 'Previous schema version mismatch'; end; $$ LANGUAGE plpgsql; | ||
fm3 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
DROP VIEW webknossos.userInfos; | ||
DROP VIEW webknossos.users_; | ||
|
||
ALTER TABLE webknossos.users DROP COLUMN loggedOutEverywhereTime; | ||
|
||
CREATE VIEW webknossos.users_ AS SELECT * FROM webknossos.users WHERE NOT isDeleted; | ||
|
||
CREATE VIEW webknossos.userInfos AS | ||
SELECT | ||
u._id AS _user, m.email, u.firstName, u.lastname, o.name AS organization_name, | ||
u.isDeactivated, u.isDatasetManager, u.isAdmin, m.isSuperUser, | ||
u._organization, o._id AS organization_id, u.created AS user_created, | ||
m.created AS multiuser_created, u._multiUser, m._lastLoggedInIdentity, u.lastActivity, m.isEmailVerified | ||
FROM webknossos.users_ u | ||
JOIN webknossos.organizations_ o ON u._organization = o._id | ||
JOIN webknossos.multiUsers_ m on u._multiUser = m._id; | ||
|
||
UPDATE webknossos.releaseInformation SET schemaVersion = 138; | ||
|
||
COMMIT TRANSACTION; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.