Skip to content

Use the configured issuer in the MFA setup QR code. - #14

Open
Hasal wants to merge 1 commit into
jenkinsci:masterfrom
Hasal:fix-configured-issuer
Open

Hasal wants to merge 1 commit into
jenkinsci:masterfrom
Hasal:fix-configured-issuer

Conversation

@Hasal

@Hasal Hasal commented Sep 30, 2026

Copy link
Copy Markdown

Fixes #9

The setup QR code always used the default issuer "Jenkins" and ignored the value saved on the security configuration page.

Testing done

  • MFAGlobalConfigurationTest, TOTPUtilTest, and MFAFlowTest pass.
  • A configured issuer containing a space is persisted, percent-encoded as %20 in the otpauth URI, and decoded from the generated QR code instead of the default "Jenkins".
  • Verified on Jenkins 2.568.2: after setting a custom issuer and scanning a new QR code, the authenticator shows that issuer.

Fixes jenkinsci#9

Signed-off-by: Hasal <gvabin@gmail.com>
@Hasal
Hasal requested a review from a team as a code owner September 30, 2026 12:39
@github-actions

Copy link
Copy Markdown

Missing required label for changelog. Requires at least 1 of: bug, chore, dependencies, documentation, enhancement, feature, internal, localization, major-bug, regression-fix, security, skip-changelog. Found: .

You can add the required label by adding a comment with the following text: /label <category>

@Hasal

Hasal commented Sep 30, 2026

Copy link
Copy Markdown
Author

/label bug

@Hasal Hasal mentioned this pull request Sep 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Issuer not updating in QR

1 participant