Open andi5 opened 3 years ago
Thanks for the feedback @andi5 . Do you have any recommendations on other ways to get the QR code? Maybe publish a list of QR code generator websites?
I suppose you could have an optional dependency on a library that is able to create qr codes. I would argue that the secret should not leave a "trusted domain" other than as encoded in a QR code that is to be consumed by a user. It should not go to Google or any other website that generates QR codes. At least this part should be documented clearly.
RIght now the javadocs say: Return the QR image url thanks to Google.
That's not enough?
When using
generateOtpAuthUrl()
, the contents are already url-encoded as that would fit for thechl
query parameter of theqrImageUrl()
. This way the plain URL is not usable, though.As a side note, is it really a good idea to offer sharing secrets with google so easily? The user of the library should strive for high security, right?