-
-
Notifications
You must be signed in to change notification settings - Fork 160
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
Can’t import QR Codes from Confluence 2FA #360
Comments
Hi,
If you get an error like The uri is not a valid otpauth uri, click the request to What's the format of |
Hi,
From that it seems the QR code cannot be read. I checked with 2FA-Apps and with https://iamyuthan.github.io/2FA-Solver/2FA-Solver.html |
Ok I get it. I made some changes to the QrCode decoding service in v5.2 to enhance decoding but I forgot to change one line. I still need to reproduce the use case with test data but I'm pretty sure it matches your issue. |
A fix is ready, but I will not release a new version before August. As you were able to decode the QR code with another service, you can add your confluence account to 2FAuth using the advanced form. The fields wait for the values contained in
|
Thank you for your replay. I checked with several older versions down to 4.2.4 but still could not import the QR code. The most simple workaround would be to use "Import" then "Direct input" where I can paste the decoded URI without any modifications. The additional step of decoding, however, makes it hard to use your project in a multi-user enviroment. For now I will apply this patch which seems to fix the issue
|
This is exactly the planned fix 😃 👍🏻
Could you be more specific?! I don't understand what's wrong with the decoding step in a multi-user environment. |
What I meant with that is I cannot tell an end user to go decode the qr-code himself and then paste that uri into your app. But with the fix that is not necessary any more. |
Indeed, registering an account using a qr code have to be straightforward. This is why 2FAuth automatically decodes the qr codes in a normal situation. In your case, it didn't work because the text in the Confluence qr code couldn't be read without the more aggressive decoding options, and because of my mistake in passing |
Version
5.2.0
Details & Steps to reproduce
Try to import QR-Code provided by Confluence’s 2FA module. There is no error message, but no data is returned by the backend. If I try to use the “read from qr code” feature, a 422 error is returned.
Expectation
QR codes from confluence could be imported.
Error & Logs
No logging server side. No visible errors in the front end. 422 error from the backend in some cases.
Execution environment
No response
Containerization
Additional information
QR codes from other sources work as expected.
I checked the confluence QR code with other readers. It contains the correct information, if I import the qr contents it works just fine. I am also able to scan it with various 2FA apps.
Since I have no control over the confluence instance and the qr code contains personal information, I cannot share it publicly. I could however share it directly with the developers for testing.
The text was updated successfully, but these errors were encountered: