Skip to content
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

userscripts: fix qute-bitwarden failing with expired session #7781

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

dezeroku
Copy link

@dezeroku dezeroku commented Jul 17, 2023

This could be seen as "mac failed" error in the logs.
The issue was that opening a session after it has been cached in qutebrowser caused the cache to be invalidated.
This PR adds "detection" of this situation and forces the user to log in again in such case.

The potentially problematic case is when mac failed string would be raised for another reason (that would not require user to log in again). But it's not likely in my opinion.

I've tested this with the username/password, but I don't use TOTP in Bitwarden so couldn't check it. Logic seems the same though, so should work. Update: TOTP tested and works fine

Closes #7607

@dezeroku dezeroku force-pushed the cleaned-up branch 2 times, most recently from c0935f7 to e04561d Compare October 14, 2023 21:08
@georgettica
Copy link

I am sad I don't have TOTP saved so I can help here :(

This could be seen as "mac failed" error in the logs
@dezeroku
Copy link
Author

dezeroku commented Nov 2, 2023

I've tested it with TOTP now and seems to work fine with the limited testing I was able to perform.
Pushing a rebased version up.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging this pull request may close these issues.

Bitwarden userscript gives "mac failed" error when another session is started somewhere else
2 participants