title: How Can I use Google OR Microsoft Push Notification for 2 factor authentication in my JAVA based web app
body: <p>I want to enable two factor authentication (<strong>with Push Notification</strong>) in my JAVA based web application.</p>
  <p>I searched and found I can use Google &amp; Microsoft authenticator app and can enable two factor authentication, I have successfully done POC for this and it works well with random code generated in Authenticator app and on my web app server and can verify the code. <a href="https://medium.com/@ihorsokolyk/two-factor-authentication-with-java-and-google-authenticator-9d7ea15ffee6" rel="nofollow noreferrer">https://medium.com/@ihorsokolyk/two-factor-authentication-with-java-and-google-authenticator-9d7ea15ffee6</a></p>
  <p>Now I want to enable Push notification in a same way, whenever user login to my webApp,after user name &amp; password verification, I want to send push notification to user's registered mobile number OR in user's Google/Microsoft authenticator app, with YES, NO options. user will then select YES or NO and based on that response, user should be able to login in my web app.</p>
  <p>I searched but not find any such API of Google or Microsoft which I can use in my web App to support push notification. Appreciate your help if any one can provide links to such API docs or  have any other suggestion to achieve this requirement.</p>
  <p>Thanks</p>