Skip to content

Java samples leveraging Azure Active Directory authentication and computing service connections to connect to Azure Databases without managing secrets.

License

Notifications You must be signed in to change notification settings

Azure-Samples/Passwordless-Connections-for-Java-Apps

Repository files navigation

Passwordless Connections Samples for Java Apps

This project contains sample code for connecting to PostgreSQL and MySQL from the most popular Java frameworks and Azure hosting environments using Azure AD authentication with no need to manage passwords.

Samples

This project provides the following samples for the following frameworks and Azure hosting environments:

  • SpringBoot:
    • Azure Spring Apps.
    • Java SE on Azure App Service
    • Tomcat on Azure App Service
    • Azure Container Apps
  • Jakarta EE:
    • JBoss EAP on Azure App Service.
    • WebLogic on Azure VM.
    • WebSphere on Azure VM.
  • Tomcat
  • Quarkus:
    • Quarkus on Azure Container Apps.

Getting Started

Prerequisites

All samples are written in Java 8 and require the following;

  • Java 8+.
  • Maven
  • Azure CLI 2.44+
  • GIT
  • An Azure subscription.
  • PSQL or MYSQL client for some examples.
  • pwgen (optional) for generating passwords in some examples.

The scripts delivered assume bash shell and were tested on Ubuntu 20.04 on WLS2. Other OSes may require some modifications or tools to be installed.

About

Java samples leveraging Azure Active Directory authentication and computing service connections to connect to Azure Databases without managing secrets.

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published