Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Add post-login complete security flow - #3847

Merged
jryans merged 4 commits into
developfrom
jryans/cross-signing-setup
Jan 16, 2020
Merged

jryans merged 4 commits into
developfrom
jryans/cross-signing-setup

Conversation

@jryans

@jryans jryans commented Jan 15, 2020 •

Copy link
Copy Markdown
Collaborator

This adds a step after login to complete security for your new session. At the
moment, the only verification method is entering your SSSS passphrase, but nicer
paths will be added soon.

This new step only appears when crypto is available and the account has
cross-signing enabled in SSSS.

cross-signing-post-login

Fixes element-hq/element-web#11214
Depends on matrix-org/matrix-js-sdk#1153
Depends on element-hq/element-web#11891

This adds a step after login to complete security for your new session. At the
moment, the only verification method is entering your SSSS passphrase, but nicer
paths will be added soon.

This new step only appears when crypto is available and the account has
cross-signing enabled in SSSS.

Fixes element-hq/element-web#11214

@turt2live turt2live left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm overall - does this work okay with soft logout? You can trick Riot into soft logging you out with localStorage.setItem("mx_soft_logout", true); and reloading the page. I wouldn't recommend trying to follow the code to determine if it works - it's probably better for your mental health to just press the buttons.

Comment thread src/components/structures/MatrixChat.js Outdated
Comment thread src/components/structures/auth/CompleteSecurity.js Outdated
Comment thread src/components/structures/auth/CompleteSecurity.js
jryans and others added 2 commits January 15, 2020 22:10
Co-Authored-By: Travis Ralston <travpc@gmail.com>
Co-Authored-By: Travis Ralston <travpc@gmail.com>
@turt2live

Copy link
Copy Markdown
Member

Just in case it gets buried in #riot-dev: test failures look legitmate (though the import sdk thing does manifest as the same error). After testing it: an account with SSSS or any cross-signing stuff is stuck at the login page after successfully submitting their credentials. It's not immediately clear to me why :(

@jryans

jryans commented Jan 16, 2020

Copy link
Copy Markdown
Collaborator Author

I have confirmed that soft logout is working for account both with and without SSSS. I cannot reproduce any login issues, but perhaps my changes today have fixed what you saw. @turt2live, can you please retest?

@turt2live
turt2live self-requested a review January 16, 2020 16:25

@turt2live turt2live left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm either way

Comment thread src/components/structures/MatrixChat.js
@jryans
jryans merged commit 8923039 into develop Jan 16, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Post-login cross-signing setup flow

2 participants