-
-
Notifications
You must be signed in to change notification settings - Fork 20
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
Issuer missing or double #48
Comments
What's the problem? By default, the OTP Auth URL uses the application name as issuer when not present ( In any case, I'm pushing a patch for #51 to throw something if the issuer is empty. |
The issue is that currently don’t work. It use %3A instead of “Laravel”. And if I set a name, then the name is used two times |
Can you dump the following?
Again, the patch version is live and you should get an error if you set an empty issuer. When it's empty, it uses the application name. It's replicated at the I don't know why you're not returning the issuer, but there must be a problem on your |
Here two detailed example of the issue. .env two-factor.php
.env two-factor.php
|
Are you on v1.2.2? |
v1.2.1 |
Try v1.2.2 |
I can also experience that issues is duplicate due that label already has the issuer, however I also think that we should take care modifying the behavior because different authentication apps can represent the label and issuer in different ways. |
PHP & Platform
8.2.4
Database
No response
Laravel version
10.13.5
Have you done this?
Expectation
Expected result
otpauth://totp/Laravel:[email protected]?secret=THISISMYSECRETPLEASEDONOTSHAREIT&issuer=Laravel&label=taylor%40laravel.com&algorithm=SHA1&digits=6&period=30
Description
Result without setting the issuer config variable
otpauth://totp/%3A:[email protected]?label=%3Ataylor%40laravel.com&secret=THISISMYSECRETPLEASEDONOTSHAREIT&algorithm=SHA1&digits=6
Result with setting the issuer config variable
otpauth://totp/Name%3AName:[email protected]?issuer=Name&label=Name%3Ataylor%40laravel.com&secret=THISISMYSECRETPLEASEDONOTSHAREIT&algorithm=SHA1&digits=6
Reproduction
Stack trace & logs
No response
The text was updated successfully, but these errors were encountered: