I am currently working on a Java project and need to establish a connection to SQL Server resources using Azure Active Directory with Universal authentication that supports Multi-Factor Authentication (MFA). I have been searching for a solution, but haven't found a comprehensive guide for this specific setup.
Could someone please assist me in achieving the required result or provide step-by-step instructions on how to connect to SQL Server resources via Java JDBC using Azure Active Directory - Universal with MFA support? Any code examples, configurations, or best practices would be greatly appreciated. Thank you!
1条答案
按热度按时间cdmah0mi1#
Follow the instructions here: Connect using ActiveDirectoryInteractive authentication mode
The important bit is
And
When you run the program, a browser is displayed to authenticate the user.
If you don't want to pop up a browser window, you'll have to use some other auth flow.