

Java Development Kit (JDK), version 8 or higher. PrerequisitesĪn Azure subscription - create one for free. Because these passwords are stored in PostgreSQL, you need to manage the rotation of the passwords by yourself. If you choose to use passwords as credentials for the accounts, these credentials will be stored in the user table. PostgreSQL authentication uses accounts stored in PostgreSQL. With Azure AD authentication, you can manage database user identities and other Microsoft services in a central location, which simplifies permission management. The Passwordless tab shows the Azure AD authentication and the Password tab shows the PostgreSQL authentication.Īzure AD authentication is a mechanism for connecting to Azure Database for PostgreSQL using identities defined in Azure AD. In this tutorial, we include two authentication methods: Azure Active Directory (Azure AD) authentication and PostgreSQL authentication.


JDBC is the standard Java API to connect to traditional relational databases. This tutorial demonstrates how to store data in an Azure Database for PostgreSQL database using Spring Data JDBC.
