-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cherry pick passwordless to the feature/spring-cloud-azure-passwordle…
…ss branch (#31076) * Support JDBC to authenticate with azure identity token credentials (#30740) * fix pipeline error (#30806) * Add UA for mysql and postgresql (#30772) * add user agent for MySQL and PostgreSQL * refactor test cases * Update terminology from credentialfree to passwordless. (#30788) * Change terminology from credentialfree to passwordless Co-authored-by: Xiaolu Dai <xiada@microsoft.com> * Update pom in spring-cloud-azure-starter-jdbc-* (#30993) * update pom * add prefix * Add IT for passwordless feature with Azure MySQL (#30982) * add some comments * remove unnecessary changes and fix pipeline bug Co-authored-by: zhihaoguo <zhihaoguo@microsoft.com>
- Loading branch information
1 parent
f17a602
commit 1e3ae3e
Showing
98 changed files
with
5,293 additions
and
79 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# Release History | ||
|
||
## 1.0.0-beta.1 (Unreleased) | ||
- Azure identity JDBC plugin library for Java. This package contains a template framework to get a token as password. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# Azure identity JDBC plugin library for Java | ||
|
||
This package contains a template framework to get a token from Azure AD. | ||
For now, it is used by `azure-identity-providers-jdbc-mysql` and `azure-identity-providers-jdbc-postgresql` as the common framework | ||
to get a token as the password for connection. | ||
|
||
## Getting started | ||
|
||
### Prerequisites | ||
|
||
- An Azure account with an active subscription. [Create an account for free](https://azure.microsoft.com/free/?WT.mc_id=A261C142F). | ||
- [Java Development Kit (JDK)][jdk] with version 8 or above. | ||
- [Apache Maven](https://maven.apache.org/download.cgi). | ||
|
||
## Key concepts | ||
|
||
Azure Identity Providers Core contains a common template framework for users to get a token from Azure AD and | ||
use the token as a password. For example, to connect Azure hosted MySQL, get a token from Azure AD and use the | ||
token as a password to connect with MySQL. | ||
|
||
## Examples | ||
|
||
## Troubleshooting | ||
If you encounter any bugs, please file issues via [Issues](https://github.com/Azure/azure-sdk-for-java/issues). | ||
|
||
## Next steps | ||
|
||
## Contributing | ||
|
||
For details on contributing to this repository, see the [contributing guide](https://github.com/Azure/azure-sdk-for-java/blob/main/CONTRIBUTING.md). | ||
|
||
1. Fork it | ||
1. Create your feature branch (`git checkout -b my-new-feature`) | ||
1. Commit your changes (`git commit -am 'Add some feature'`) | ||
1. Push to the branch (`git push origin my-new-feature`) | ||
1. Create new Pull Request | ||
|
||
|
||
<!-- LINKS --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,155 @@ | ||
<project xmlns="http://maven.apache.org/POM/4.0.0" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> | ||
<modelVersion>4.0.0</modelVersion> | ||
|
||
<parent> | ||
<groupId>com.azure</groupId> | ||
<artifactId>azure-client-sdk-parent</artifactId> | ||
<version>1.7.0</version> <!-- {x-version-update;com.azure:azure-client-sdk-parent;current} --> | ||
<relativePath>../../parents/azure-client-sdk-parent</relativePath> | ||
</parent> | ||
|
||
<groupId>com.azure</groupId> | ||
<artifactId>azure-identity-providers-core</artifactId> | ||
<version>1.0.0-beta.1</version> <!-- {x-version-update;com.azure:azure-identity-providers-core;current} --> | ||
<packaging>jar</packaging> | ||
|
||
<name>Azure Identity Providers Core</name> | ||
<description>This package contains the business logic of authenticating with Azure AD and returning a token as a password.</description> | ||
<url>https://github.com/azure/azure-sdk-for-java</url> | ||
|
||
<dependencies> | ||
<dependency> | ||
<groupId>com.azure</groupId> | ||
<artifactId>azure-identity</artifactId> | ||
<version>1.6.0-beta.1</version> <!-- {x-version-update;jdbc_com.azure:azure-identity;external_dependency} --> | ||
</dependency> | ||
|
||
<!-- test --> | ||
<dependency> | ||
<groupId>uk.org.webcompere</groupId> | ||
<artifactId>system-stubs-jupiter</artifactId> | ||
<version>2.0.1</version> <!-- {x-version-update;uk.org.webcompere:system-stubs-jupiter;external_dependency} --> | ||
<scope>test</scope> | ||
</dependency> | ||
|
||
<dependency> | ||
<groupId>org.mockito</groupId> | ||
<artifactId>mockito-core</artifactId> | ||
<version>4.5.1</version> <!-- {x-version-update;org.mockito:mockito-core;external_dependency} --> | ||
<scope>test</scope> | ||
</dependency> | ||
|
||
<dependency> | ||
<groupId>org.junit.jupiter</groupId> | ||
<artifactId>junit-jupiter</artifactId> | ||
<version>5.8.2</version> <!-- {x-version-update;org.junit.jupiter:junit-jupiter;external_dependency} --> | ||
<scope>test</scope> | ||
</dependency> | ||
|
||
<dependency> | ||
<groupId>com.google.code.findbugs</groupId> | ||
<artifactId>jsr305</artifactId> | ||
<version>3.0.2</version> <!-- {x-version-update;com.google.code.findbugs:jsr305;external_dependency} --> | ||
<scope>provided</scope> | ||
</dependency> | ||
</dependencies> | ||
|
||
<build> | ||
<plugins> | ||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-enforcer-plugin</artifactId> | ||
<version>3.0.0-M3</version> <!-- {x-version-update;org.apache.maven.plugins:maven-enforcer-plugin;external_dependency} --> | ||
<configuration> | ||
<rules> | ||
<bannedDependencies> | ||
<includes> | ||
<include>org.postgresql:postgresql:[42.3.6]</include> <!-- {x-include-update;org.postgresql:postgresql;external_dependency} --> | ||
</includes> | ||
</bannedDependencies> | ||
</rules> | ||
</configuration> | ||
</plugin> | ||
<!-- START: Empty Java Doc --> | ||
<!-- The following code will generate an empty javadoc with just a README.md. This is necessary | ||
to pass the required checks on Maven. The way this works is by setting the classesDirectory | ||
to a directory that only contains the README.md, which we need to copy. If the classesDirectory | ||
is set to the root, where the README.md lives, it still won't have javadocs but the jar file | ||
will contain a bunch of files that shouldn't be there. The faux sources directory is deleted | ||
and recreated with the README.md being copied every time to guarantee that, when building locally, | ||
it'll have the latest copy of the README.md file. | ||
--> | ||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-javadoc-plugin</artifactId> | ||
<version>3.3.1</version> <!-- {x-version-update;org.apache.maven.plugins:maven-javadoc-plugin;external_dependency} --> | ||
<executions> | ||
<execution> | ||
<id>attach-javadocs</id> | ||
<goals> | ||
<goal>jar</goal> | ||
</goals> | ||
<configuration> | ||
<skip>true</skip> | ||
</configuration> | ||
</execution> | ||
</executions> | ||
</plugin> | ||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-jar-plugin</artifactId> | ||
<version>3.1.2</version> <!-- {x-version-update;org.apache.maven.plugins:maven-jar-plugin;external_dependency} --> | ||
<executions> | ||
<execution> | ||
<id>empty-javadoc-jar-with-readme</id> | ||
<phase>package</phase> | ||
<goals> | ||
<goal>jar</goal> | ||
</goals> | ||
<configuration> | ||
<classifier>javadoc</classifier> | ||
<classesDirectory>${project.basedir}/javadocTemp</classesDirectory> | ||
</configuration> | ||
</execution> | ||
</executions> | ||
</plugin> | ||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-antrun-plugin</artifactId> | ||
<version>1.8</version> <!-- {x-version-update;org.apache.maven.plugins:maven-antrun-plugin;external_dependency} --> | ||
<executions> | ||
<execution> | ||
<id>copy-readme-to-javadocTemp</id> | ||
<phase>prepare-package</phase> | ||
<configuration> | ||
<target> | ||
<echo>Deleting existing ${project.basedir}/javadocTemp</echo> | ||
<delete includeEmptyDirs="true" quiet="true"> | ||
<fileset dir="${project.basedir}/javadocTemp"/> | ||
</delete> | ||
<echo>Copying ${project.basedir}/README.md to | ||
${project.basedir}/javadocTemp/README.md | ||
</echo> | ||
<copy file="${project.basedir}/README.md" tofile="${project.basedir}/javadocTemp/README.md"/> | ||
</target> | ||
</configuration> | ||
<goals> | ||
<goal>run</goal> | ||
</goals> | ||
</execution> | ||
</executions> | ||
</plugin> | ||
<!-- END: Empty Java Doc --> | ||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-surefire-plugin</artifactId> | ||
<version>3.0.0-M7</version><!-- {x-version-update;org.apache.maven.plugins:maven-surefire-plugin;external_dependency} --> | ||
<configuration> | ||
<reuseForks>false</reuseForks> | ||
</configuration> | ||
</plugin> | ||
</plugins> | ||
</build> | ||
|
||
</project> |
Oops, something went wrong.