5.3 Create Application Registrations in Microsoft Entra ID
In your Microsoft Entra ID directory, create two application registrations: one for the database and one for the Spring Boot application. This step establishes trust between the application, the database resource, and Microsoft Entra ID.
Note:
The Microsoft Entra portal interface may be updated over time. If a specific label or navigation path differs from the instructions provided here, look for the closest matching option.5.3.1 Register the Database Resource
Register your database by creating an application in Microsoft Entra ID so that access tokens can be issued specifically for the database. Subsequently, expose this application registration as a web API to manage client access, and define a scope to control which applications can request database-access tokens.
- Create an application registration in Microsoft Entra ID to represent the
database.
- Expose the database's application registration as a web API, and define a scope
to control access for client applications.
5.3.2 Register the Spring Boot Application
Register the Spring Boot application by creating an application in Microsoft Entra ID and authorize it to request access tokens for your database.
This application serves two purposes: it is a confidential client that
authenticates to Entra ID using a client secret, and it is also the resource server
that end users authenticate against when calling the API. The application role
defined on this registration flows into the user’s JWT roles claim,
which the database reads to activate the matching data role.