From fafd92688476e98a0796a7b206a3a553b225059f Mon Sep 17 00:00:00 2001 From: Marc Rufer Date: Tue, 26 May 2026 23:41:53 +0200 Subject: [PATCH 1/3] Update registration steps for Entra ID application --- .../enable-spring-boot-webapp-authentication-entra-id.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/articles/java/identity/enable-spring-boot-webapp-authentication-entra-id.md b/articles/java/identity/enable-spring-boot-webapp-authentication-entra-id.md index ffe4145959..4671b53e37 100644 --- a/articles/java/identity/enable-spring-boot-webapp-authentication-entra-id.md +++ b/articles/java/identity/enable-spring-boot-webapp-authentication-entra-id.md @@ -62,12 +62,12 @@ To register the app, use the following steps: 1. Navigate to the [Azure portal](https://portal.azure.com) and select **Microsoft Entra ID**. -1. Select **App Registrations** on the navigation pane, then select **New registration**. +1. Select **App registrations** on the navigation pane, then select **New registration**. 1. In the **Register an application page** that appears, enter the following application registration information: - In the **Name** section, enter a meaningful application name for display to users of the app - for example, `java-spring-webapp-auth`. - - Under **Supported account types**, select **Accounts in this organizational directory only**. + - Under **Supported account types**, select **Single tenant only - TENANT_NAME**. - In the **Redirect URI (optional)** section, select **Web** in the combo-box and enter the following redirect URI: `http://localhost:8080/login/oauth2/code/`. 1. Select **Register** to create the application. @@ -80,7 +80,7 @@ To register the app, use the following steps: 1. Type a description - for example, **app secret**. -1. Select one of the available durations: **In 1 year**, **In 2 years**, or **Never Expires**. +1. Select one of the available durations: **Recommended: 180 days (6 months)**, **90 days (3 months)**, **365 days (12 months)**, **545 days (18 months)** or **730 days (24 months)**. 1. Select **Add**. The generated value is displayed. @@ -101,7 +101,7 @@ Use the following steps to configure the app: 1. Find the placeholder `Enter_Your_Tenant_ID_Here` and replace the existing value with your Microsoft Entra tenant ID. -1. Find the placeholder `Enter_Your_Client_ID_Here` and replace the existing value with the application ID or `clientId` of the `java-spring-webapp-auth` app copied from the Azure portal. +1. Find the placeholder `Enter_Your_Client_ID_Here` and replace the existing value with the application ID or `clientId` of the `java-spring-webapp-auth` app registration copied from the Azure portal. 1. Find the placeholder `Enter_Your_Client_Secret_Here` and replace the existing value with the value you saved during the creation of `java-spring-webapp-auth` copied from the Azure portal. From 0c46dd8d1d1fe4f52b9df9d0496b97db4ca258a7 Mon Sep 17 00:00:00 2001 From: Marc Rufer Date: Wed, 27 May 2026 00:03:07 +0200 Subject: [PATCH 2/3] Apply suggestion from @rufer7 --- .../enable-spring-boot-webapp-authentication-entra-id.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/articles/java/identity/enable-spring-boot-webapp-authentication-entra-id.md b/articles/java/identity/enable-spring-boot-webapp-authentication-entra-id.md index 4671b53e37..54c7b1a674 100644 --- a/articles/java/identity/enable-spring-boot-webapp-authentication-entra-id.md +++ b/articles/java/identity/enable-spring-boot-webapp-authentication-entra-id.md @@ -67,7 +67,7 @@ To register the app, use the following steps: 1. In the **Register an application page** that appears, enter the following application registration information: - In the **Name** section, enter a meaningful application name for display to users of the app - for example, `java-spring-webapp-auth`. - - Under **Supported account types**, select **Single tenant only - TENANT_NAME**. + - Under **Supported account types**, select **Single tenant only - TENANT_NAME** (`TENANT_NAME` varies per tenant). - In the **Redirect URI (optional)** section, select **Web** in the combo-box and enter the following redirect URI: `http://localhost:8080/login/oauth2/code/`. 1. Select **Register** to create the application. From 0315b9e0d4ee233d8f94a07f51aafe2adeb314c2 Mon Sep 17 00:00:00 2001 From: Marc Rufer Date: Wed, 27 May 2026 16:38:31 +0200 Subject: [PATCH 3/3] Apply suggestions from code review Co-authored-by: Karl Erickson <1775795+KarlErickson@users.noreply.github.com> --- .../enable-spring-boot-webapp-authentication-entra-id.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/articles/java/identity/enable-spring-boot-webapp-authentication-entra-id.md b/articles/java/identity/enable-spring-boot-webapp-authentication-entra-id.md index 54c7b1a674..9267a420e4 100644 --- a/articles/java/identity/enable-spring-boot-webapp-authentication-entra-id.md +++ b/articles/java/identity/enable-spring-boot-webapp-authentication-entra-id.md @@ -101,7 +101,7 @@ Use the following steps to configure the app: 1. Find the placeholder `Enter_Your_Tenant_ID_Here` and replace the existing value with your Microsoft Entra tenant ID. -1. Find the placeholder `Enter_Your_Client_ID_Here` and replace the existing value with the application ID or `clientId` of the `java-spring-webapp-auth` app registration copied from the Azure portal. +1. Find the placeholder `Enter_Your_Client_ID_Here` and replace the existing value with the `java-spring-webapp-auth` app's application ID or `clientId` that you copied from the Azure portal. 1. Find the placeholder `Enter_Your_Client_Secret_Here` and replace the existing value with the value you saved during the creation of `java-spring-webapp-auth` copied from the Azure portal.