pwm
pwm copied to clipboard
Issuer Name not visible in Google Authenticator
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

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,
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.