PHPGangsta / GoogleAuthenticator

PHP class to generate and verify Google Authenticator 2-factor authentication
http://phpgangsta.de/4376
BSD 2-Clause "Simplified" License
2.23k stars 689 forks source link

Support for microsoft authenticator #80

Closed adars47 closed 2 years ago

adars47 commented 3 years ago

Microsoft authenticator needs that extra parameter to get the app name correct.

MarkMaldaba commented 3 years ago

Not sure why you are calling urlencode() inside urlencode(). That will result in double-escaping!

Also, for the record, this doesn't only affect Microsoft Authenticator - other apps are also affected (e.g. FreeOTP).

Note that PR #76 contains an alternative solution to the same problem, though it also suffers from the double-escaping issue.