By Basil Bourque


2018-10-26 23:11:00 8 Comments

Postgres 10 added support for a new password authentication mechanism, Salted Challenge Response Authentication Mechanism (SCRAM-SHA-256, see RFC 7677). Discussed by Michael Paquier.

➥ Can this mechanism work with JDBC drivers?

If not, why not?

If so, have any drivers yet implemented this feature?

1 comments

@jjanes 2018-10-26 23:30:15

I have not verified this myself, but the answer seems to be Yes, from version 42.2.0 of the driver from the jdbc.postgresql.org project.

To quote the changelog for Version 42.2.0:

Support SCRAM-SHA-256 for PostgreSQL 10 in the JDBC 4.2 version (Java 8+) using the Ongres SCRAM library.

See GitHub pull request # 842.

That driver uses the SCRAM Java Implementation project by ongres.

Related Questions

Sponsored Content

4 Answered Questions

2 Answered Questions

1 Answered Questions

1 Answered Questions

2 Answered Questions

[SOLVED] Connect to Postgresql 9.2 from Eclipse Data Tools Platform

  • 2012-12-20 16:10:03
  • David Kulpanowski
  • 20277 View
  • 2 Score
  • 2 Answer
  • Tags:   postgresql jdbc

1 Answered Questions

[SOLVED] Choosing A PostgreSQL Authentication Method For A Large Course

1 Answered Questions

2 Answered Questions

[SOLVED] psql won't list databases

  • 2012-03-29 23:38:56
  • Bart Silverstrim
  • 2025 View
  • 4 Score
  • 2 Answer
  • Tags:   postgresql psql

Sponsored Content