How to use Azure AD authentication in DBeaver

Published on in Miscellaneous

Alternative title: How to fix the "Failed to load MSAL4J Java library for performing ActiveDirectoryPassword authentication" error.

I'm using the free Community Edition of DBeaver, version 23.3.5.

In the "Connection Settings" pop-up window:

  1. Select e.g. "Active Directory – MFA" as the authentication method and type your username
  2. Click Driver Settings
  3. Choose the "Libraries" tab
  4. Click Add Artifact from the right
  5. Paste the following XML
    <!-- -->
  6. Click OK
  7. Click Download/Update from the right and Download in the opening pop-up window
  8. Click OK
  9. Click Test Connection ... and authenticate in the opening browser window