Skip to content

Commit 0cefaa3

Browse files
committed
2 parents 490ed6d + 45018c7 commit 0cefaa3

File tree

2 files changed

+0
-12
lines changed

2 files changed

+0
-12
lines changed

README.md

689 Bytes

spring-azure-entra-oauth2

Spring Boot with Azure Active Directory

This project implements Azure AD authentication in a Spring Boot app. Main steps:

  1. Create Spring Boot project: Add dependencies for Spring Security and Azure AD.
  2. Register app in Azure AD: Configure app registration and obtain necessary credentials.
  3. Configure application properties: Set Azure AD details in application.properties.
  4. Secure endpoints: Use roles to secure application routes.
  5. Test the app: Ensure correct authentication flow.
-12
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,6 @@
11
spring.application.name=spring-azure-entra-oauth2
22

3-
# Enable related features.
43
spring.cloud.azure.active-directory.enabled=true
5-
# Specifies your Active Directory ID:
64
spring.cloud.azure.active-directory.profile.tenant-id=<tenant-ID>
7-
# Specifies your App Registration's Application ID:
85
spring.cloud.azure.active-directory.credential.client-id=<client-ID>
9-
# Specifies your App Registration's secret key:
106
spring.cloud.azure.active-directory.credential.client-secret=<client-secret>
11-
12-
echo "# spring-azure-entra-oauth2" >> README.md
13-
git init
14-
git add .
15-
git commit -m "first commit"
16-
git branch -M master
17-
git remote add origin https://github.com/amachlou/spring-azure-entra-oauth2.git
18-
git push -u origin master

0 commit comments

Comments
 (0)