google / google-authenticator

Open source version of Google Authenticator (except the Android app)
Apache License 2.0
5.17k stars 966 forks source link

Add support for token image via URI #685

Open pkishan1990 opened 4 years ago

pkishan1990 commented 4 years ago

There should be some way for developers to add their own logo in the Authenticator app, just not only supporting popular websites.

For example: otpauth://totp/Issuer%3Ajohn%40example.com?image=https://picsum.photos/100.png&secret=4ED3SSHWSYSHC3FTEZFIOFPLDFIT2R2Y&issuer=Issuer

egrim commented 3 years ago

This is a good idea! Can we get this reopened?

I'd suggest a first step is to edit the Key Uri Format definition to add an optional image parameter. This will help it get picked up by other authenticators (apparently FreeOTP already supports it).