How to integrate two factor authentication with notifies of Microsoft Authenticator and Spring Boot

AdriR 5 Reputation points
2023-05-11T12:31:22.53+00:00

Hi,

I need to integrate two-factor authentication into my Spring Boot project, using push notifications from the Microsoft Authenticator app. The specific case is the following: the user enters username and password during login and when he clicks on the Login button, he receives a notification on his Microsoft Authenticator app to approve the login. In this case, should I use Microsoft Graph or Azure Hub to notify its Microsoft Authenticator app? Otherwise how does the user get a login approval notification on his login attempt? I can't find any examples of this case study, could you provide me with some links for help?
Thank you

Microsoft Authenticator
Microsoft Authenticator
A Microsoft app for iOS and Android devices that enables authentication with two-factor verification, phone sign-in, and code generation.
5,533 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Dillon Silzer 54,646 Reputation points
    2023-05-12T04:42:59.63+00:00

    Hello AdriR,

    Perhaps you want to take a look at the following document:

    Enable your Java Spring Boot web app to sign in users on your Azure Active Directory tenant with the Microsoft identity platform

    https://learn.microsoft.com/en-us/samples/azure-samples/ms-identity-msal-java-samples/ms-identity-java-spring-tutorial/

    You can use AAD to sign in users to your Spring Boot app to seamlessly login.


    If this is helpful please accept answer.