-
Notifications
You must be signed in to change notification settings - Fork 229
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
URL Encoding bug #68
Comments
So, we are just using standard golang Do you have a Client that isn't supporting the |
I saw this golang issue as well. The client I made the screenshots with is Google Authenticator. My workaround is to concat the URL and encode each parameter. |
I will explain the differences of both encodings used by net.URL. Go net.URL has two different encoding functions: I'm building my own URL by concating the user defined values and only use PathEscape().
|
Fixed by #78 and the v1.4 release https://github.com/pquerna/otp/releases/tag/v1.4.0 |
Hello
if the issuer contains a space, the URL encoder will mix up the URL.
Actual result:
otpauth://totp/Test%20Issuer:my@email.com?algorithm=SHA1&digits=6&issuer=Test+Issuer&period=30&secret=QE2C7JXZB3TY3FBKL6PB7PZXP7UCRPOA
Expected result:
otpauth://totp/Test%20Issuer:my@email.com?algorithm=SHA1&digits=6&issuer=Test%20Issuer&period=30&secret=QE2C7JXZB3TY3FBKL6PB7PZXP7UCRPOA
The text was updated successfully, but these errors were encountered: