File tree 2 files changed +0
-12
lines changed
2 files changed +0
-12
lines changed spring-azure-entra-oauth2 Spring Boot with Azure Active Directory This project implements Azure AD authentication in a Spring Boot app. Main steps:
Create Spring Boot project: Add dependencies for Spring Security and Azure AD. Register app in Azure AD: Configure app registration and obtain necessary credentials. Configure application properties: Set Azure AD details in application.properties. Secure endpoints: Use roles to secure application routes. Test the app: Ensure correct authentication flow.
Original file line number Diff line number Diff line change 1
1
spring.application.name =spring-azure-entra-oauth2
2
2
3
- # Enable related features.
4
3
spring.cloud.azure.active-directory.enabled =true
5
- # Specifies your Active Directory ID:
6
4
spring.cloud.azure.active-directory.profile.tenant-id =<tenant-ID>
7
- # Specifies your App Registration's Application ID:
8
5
spring.cloud.azure.active-directory.credential.client-id =<client-ID>
9
- # Specifies your App Registration's secret key:
10
6
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
You can’t perform that action at this time.
0 commit comments