pwm icon indicating copy to clipboard operation
pwm copied to clipboard

Issuer Name not visible in Google Authenticator

Open shoiebarshad opened this issue 7 years ago • 1 comments

Hi, if we configure the OTP token in Google Authenticator, it only shows the email not the Issuer name. as you can see "Google" in the image below image

the stranded for the OTP URL is "otpauth://totp/ISSUER:[email protected]?secret=SECRET&issuer=ISSUER" but in the PWM code at

server/src/main/java/password/pwm/util/operations/otp/OTPUrlUtil.java it takes only three variables String.format( "otpauth://%s/%s?secret=%s", otptype.toLowerCase(), ident, secret ); can we add ISSUER option here as well, most preferably as configuration item, so that admins can select the name? Thanks in advance,

shoiebarshad avatar May 30 '18 08:05 shoiebarshad

upon further investigation, i think the better place to add the ISSUER would be server/src/main/java/password/pwm/http/servlet/SetupOtpServlet.java i have a function named "makeQrCodeDataImageUrl" and we can add issuer here.

shoiebarshad avatar Jun 26 '18 05:06 shoiebarshad