Skip to content

Latest commit

 

History

History
 
 

aad-web-application-and-resource-server

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
page_type languages products name description
sample
java
azure-active-directory
Developing Spring Boot Web Application Supports Login by Microsoft Entra Account and Expose REST API
This sample demonstrates how to develop a Spring Boot web application supports login by Microsoft Entra account and expose REST API at the same time.

Developing Spring Boot Web Application Supports Login by Microsoft Entra Account and Expose REST API

Key concepts

This scenario supports Web application and Resource server in one application.

Getting started

We assume that when used as a Resource server, it is called WebApiC; when used as a Web application, it is called WebApp2.

Configure web app

See Configure web application for more information about web app.

Configure groups for sign in user

See Configure groups for sign in user for more information about groups for sign in user.

Configure web api

See Configure your middle-tier Web API or Configure Web API for more information about web api.

Advanced features

Run with Maven

cd azure-spring-boot-samples/aad/spring-cloud-azure-starter-active-directory/aad-web-application-and-resource-server
mvn spring-boot:run

Check the authentication and authorization.

See Check the authentication and authorization of Web Application or Check the authentication and authorization of Resource Server for more information about checking.

Deploy to Azure Spring Apps

Now that you have the Spring Boot application running locally, it's time to move it to production. Azure Spring Apps makes it easy to deploy Spring Boot applications to Azure without any code changes. The service manages the infrastructure of Spring applications so developers can focus on their code. Azure Spring Apps provides lifecycle management using comprehensive monitoring and diagnostics, configuration management, service discovery, CI/CD integration, blue-green deployments, and more. To deploy your application to Azure Spring Apps, see Deploy your first application to Azure Spring Apps.

Troubleshooting

Next steps

Contributing