Skip to content

[JENKINS-75010] SecurityRealm Redirect URI issue azure-ad  #668

@jenkins-infra-bot

Description

@jenkins-infra-bot

Hi,

I am having a Redirect URI issue when I update the Jenkins version from Jenkins 2.462.3 to Jenkins 2.479.2 LTS.

Jenkins added port ":8080" to the system configuration, so I am getting the below error.

AADSTS50011: The redirect URI 'https://{your_jenkins_host}:8080/securityRealm/finishLogin' specified in the request does not match the redirect URIs configured for the application ''. Make sure the redirect URI sent in the request matches one added to your application in the Azure portal. Navigate to [Error AADSTS50011 the redirect URI does not match the redirect URIs configured for the application | Microsoft Learn|https://aka.ms/redirectUriMismatchError] to learn more about how to fix this.

Microsoft Entra ID (previously Azure AD)

  1. Add a new Reply URL https://\{your_jenkins_host}/securityRealm/finishLogin. Make sure "Jenkins URL" (Manage Jenkins => Configure System) is set to the same value as https://\{your_jenkins_host}{}.

Originally reported by johndevopsus, imported from: SecurityRealm Redirect URI issue azure-ad
  • assignee: fbelzunc
  • status: Open
  • priority: Major
  • component(s): active-directory-plugin
  • resolution: Unresolved
  • votes: 0
  • watchers: 1
  • imported: 2025-12-07
Raw content of original issue

Hi,

I am having a Redirect URI issue when I update the Jenkins version from Jenkins 2.462.3 to Jenkins 2.479.2 LTS.

Jenkins added port ":8080" to the system configuration, so I am getting the below error.

AADSTS50011: The redirect URI 'https://{your_jenkins_host}:8080/securityRealm/finishLogin' specified in the request does not match the redirect URIs configured for the application ''. Make sure the redirect URI sent in the request matches one added to your application in the Azure portal. Navigate to [Error AADSTS50011 the redirect URI does not match the redirect URIs configured for the application | Microsoft Learn|https://aka.ms/redirectUriMismatchError] to learn more about how to fix this.

Microsoft Entra ID (previously Azure AD)

  1. Add a new Reply URL https://\{your_jenkins_host}/securityRealm/finishLogin. Make sure "Jenkins URL" (Manage Jenkins => Configure System) is set to the same value as https://\{your_jenkins_host}{}.
environment
Jenkins setup:<br/>
Jenkins: 2.462.3<br/>
OS: Windows Server 2022 - 10.0<br/>
Java: 17.0.7 - Eclipse Adoptium (OpenJDK 64-Bit Server VM)<br/>
Office-365-Connector:5.0.0<br/>
active-directory:2.38<br/>
authentication-tokens:1.119.v50285141b_7e1<br/>
azure-ad:531.v13107da_f2635<br/>
azure-cli:0.9<br/>
azure-credentials:343.vd80f9c4859df<br/>
azure-credentials-ext:1.0<br/>
azure-sdk:191.v53ec8913ee10<br/>
javadoc:280.v050b_5c849f69<br/>
javax-activation-api:1.2.0-7<br/>
javax-mail-api:1.6.2-10<br/>
jaxb:2.3.9-1<br/>
jdk-tool:80.v8a_dee33ed6f0

Metadata

Metadata

Assignees

No one assigned

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions