Is it possible to handle multiple app registrations for one Spring Boot app?

Edward Romanenco 0 Reputation points
2023-09-21T17:03:56.92+00:00

Hello everyone, I have a Spring Boot app that expose an API which I would like to protect in a manner similar to the one described over here, problem is, I would like to provide access to users from two different Azure apps (both reside in the same tenant, there are two different sets of client-id, app-id and client secret), I couldn't find any info online on wheter it's even doable. Can you please suggest a way it can be done?

Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
21,354 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Marilee Turscak-MSFT 36,816 Reputation points Microsoft Employee
    2023-09-22T20:10:14.4266667+00:00

    Hi @Edward Romanenco ,

    Yes, this is possible to have two app registrations for one app using multiple authentication schemas or the On-Behalf-Of flow.

    There are some examples below:

    https://github.com/AzureAD/microsoft-identity-web/wiki/Multiple-Authentication-Schemes

    https://learn.microsoft.com/en-us/answers/questions/1160572/is-it-possible-to-handle-multiple-app-registration

    https://stackoverflow.com/questions/55155055/using-two-azure-ad-app-registrations-for-mobile-and-web

    https://stackoverflow.com/questions/60169469/is-it-possible-to-have-multiple-azure-ad-applications-for-one-web-app

    Let me know if this is what you are looking for. We don't have an official guide for your exact scenario.

    If the information helped you, please Accept the answer. This will help us as well as others in the community who may be researching the same issue. Otherwise let me know if you have further questions.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.