[pgjdbc/pgjdbc] befea1: Add SCRAM-SHA-256 support (#842)

From: Álvaro Hernández Tortosa <aht(at)8kdata(dot)com>
To: pgsql-jdbc(at)postgresql(dot)org
Subject: [pgjdbc/pgjdbc] befea1: Add SCRAM-SHA-256 support (#842)
Date: 2017-11-21 11:42:30
Message-ID: 5a141126447c4_34973f8c34013c2c697bd@hookshot-fe2-cp1-prd.iad.github.net.mail
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

Branch: refs/heads/master
Home: https://github.com/pgjdbc/pgjdbc
Commit: befea18d153dda7814daef4e036d3f5daf8de1e5
https://github.com/pgjdbc/pgjdbc/commit/befea18d153dda7814daef4e036d3f5daf8de1e5
Author: Álvaro Hernández Tortosa <aht(at)8kdata(dot)com>
Date: 2017-11-21 (Tue, 21 Nov 2017)

Changed paths:
M .travis.yml
M pgjdbc/pom.xml
M pgjdbc/src/main/java/org/postgresql/core/v3/ConnectionFactoryImpl.java
A pgjdbc/src/main/java/org/postgresql/jre8/sasl/ScramAuthenticator.java

Log Message:
-----------
Add SCRAM-SHA-256 support (#842)

* Add SCRAM-SHA-256 support

PostgreSQL 10 comes with SCRAM-SHA-256 support. This commit introduces
support for it.

Work is based on an external dependency, the SCRAM client library:

https://github.com/ongres/scram/

which is now imported as a dependency.

TODO:
- SCRAM client library will be improved, on its own.
Particularly, StringPrep support needs to be added. Final
version of pgjdbc will depend on v1.0
- Testing
- Probably macros to avoid this Java8-only code propagating to
Java < 8 versions of the driver

* Prepare Java8-only code to be excluded for jre<=8

Actually implemented via macros by JDBC < 4.2.

* On HEAD all testing connections will use SCRAM

* Better error message for drivers w/o SCRAM support

* added configuration for shaded jar
remove any extraneous classes picked up in the shade plugin

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message Marc Mamin 2017-11-21 11:48:29 RE: Retrieve the server's time zone
Previous Message Dave Cramer 2017-11-21 11:29:53 Re: Retrieve the server's time zone