Skip to content

Commit 35ed617

Browse files
committed
Support scram-sha-256 out of the box
Remove `<optional>true</optional>` from com.ongres.scram:scram-client dependency. Since PostgreSQL 14+ the default value for password_encryption is scram-sha-256. Explain the migration from Vert.x 4 to Vert.x 5 in index.adoc - the client has been changed from `client` to `scram-client`: https://github.com/eclipse-vertx/vertx-sql-client/pull/1431/files Fixes #944, #1059, #1189, #1249, #1266, #1398, #1466
1 parent 9bd56bf commit 35ed617

File tree

2 files changed

+1
-22
lines changed

2 files changed

+1
-22
lines changed

vertx-pg-client/pom.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@
5454
<groupId>com.ongres.scram</groupId>
5555
<artifactId>scram-client</artifactId>
5656
<version>3.1</version>
57-
<optional>true</optional>
5857
</dependency>
5958

6059
<!-- Testing purposes -->

vertx-pg-client/src/main/asciidoc/index.adoc

Lines changed: 1 addition & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -233,28 +233,8 @@ $ PGUSER=user \
233233

234234
=== SASL SCRAM-SHA-256 authentication mechanism.
235235

236-
To use the SASL `SCRAM-SHA-256` authentication add the following dependency to the _dependencies_ section of your build descriptor:
236+
The `vertx-pg-client` supports the `SCRAM-SHA-256` and `SCRAM-SHA-256-PLUS` SASL authentication. From version v5.0.0 on `vertx-pg-client` ships with the `com.ongres.scram` library dependency, `vertx-pg-client` users can remove the `com.ongres.scram` library from their `pom.xml` and `build.gradle` files.
237237

238-
* Maven (in your `pom.xml`):
239-
240-
[source,xml]
241-
----
242-
<dependency>
243-
<groupId>com.ongres.scram</groupId>
244-
<artifactId>scram-client</artifactId>
245-
<version>3.1</version>
246-
</dependency>
247-
----
248-
* Gradle (in your `build.gradle` file):
249-
250-
[source,groovy]
251-
----
252-
dependencies {
253-
compile 'com.ongres.scram:scram-client:3.1'
254-
}
255-
----
256-
257-
When the database requires a scram authentication and the scram client jar is not on the class/module path, the connection will be closed by the client.
258238

259239
include::queries.adoc[leveloffset=1]
260240

0 commit comments

Comments
 (0)