Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dKAW4-0003cJ-SU for pgsql-jdbc@arkaria.postgresql.org; Sun, 11 Jun 2017 21:35:25 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1dKAW4-0004Fw-F0 for pgsql-jdbc@arkaria.postgresql.org; Sun, 11 Jun 2017 21:35:24 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dKAVY-0003Ie-Sj for pgsql-jdbc@postgresql.org; Sun, 11 Jun 2017 21:34:52 +0000 Received: from mail-wr0-x22e.google.com ([2a00:1450:400c:c0c::22e]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1dKAVV-0006Bw-BT for pgsql-jdbc@postgresql.org; Sun, 11 Jun 2017 21:34:52 +0000 Received: by mail-wr0-x22e.google.com with SMTP id v104so77733009wrb.0 for ; Sun, 11 Jun 2017 14:34:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=8kdata-com.20150623.gappssmtp.com; s=20150623; h=to:from:subject:message-id:date:user-agent:mime-version :content-transfer-encoding:content-language; bh=+OonmiB0iDEOoIeqFHmTo5LV3RcAShAXe2L1PtMuwCU=; b=Hfv3D8eLp/Ot430Yb7WmM5VBdx+fLvdoivA/630PP013fUCFFiiU7wzYXJpW6j74Qs p6e/l+DE3LYnlaHHd256wkgpwO6/sIHoE2z+cFzJ0Oj2EaCdDRHijysDlAnlCQilDEyI X8+J/be2bHOHBbazOjETnlm1Ln95xjvngM669XHF7LBJCuhVWVpTuhWbRXROf60bl3ZU cuzVdDPN4E5W709PWW1fWbGcaWJZ37X9JAr74N855OX/1LJALtS8S5juawHG00e5pErB O4GzMD2v10eWnJl1mTeUzqQQIi5xrK7zDX781jO+PX1SIKkzPfOL/t/0KVFDV+reoDyc cLdQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:to:from:subject:message-id:date:user-agent :mime-version:content-transfer-encoding:content-language; bh=+OonmiB0iDEOoIeqFHmTo5LV3RcAShAXe2L1PtMuwCU=; b=Hy8idageD7r+dx90kT2D8pAKmDW1PsbeL+xHOBKK1/FWye8wYPfyPqmf6T6b9GNln1 UQs9TQX+ZhHl5Hk3DFh/Fun0iR/Edr/7LGehvRQGQfcKZqNQIeavBtUe8HZpWXDn9JAF SdOE+kN5r3mxT2zWQn2ZA2JPSsepOq0LP2tb/NM4dqLL+WlOT/nbe8MnhuQ4sc8W3DYY OOyOwY8+jrDwALC6ttmxquNodFsO6fd3KkC3LDdexZkH7ND6M+iN107SPYNbZu6bDd97 KEVKu8Egu3UgmdDJbDr7nM8m77xvpTbo/5aQHDmScUHeGVkXjBsiAlTbNGAW0g7LbNRp 0cVQ== X-Gm-Message-State: AODbwcB8I/pqTegzA+A8vyoc4CHaqMC/b7L2dnexGtiTUicOl3Y2uI7e meyDuPc6LvwAapnqn/SJTA== X-Received: by 10.28.129.149 with SMTP id c143mr5647717wmd.47.1497216886961; Sun, 11 Jun 2017 14:34:46 -0700 (PDT) Received: from [192.168.1.128] (231.88.220.87.dynamic.jazztel.es. [87.220.88.231]) by smtp.gmail.com with ESMTPSA id m187sm5781858wmb.10.2017.06.11.14.34.46 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 11 Jun 2017 14:34:46 -0700 (PDT) To: pgjdbc list From: =?UTF-8?Q?=c3=81lvaro_Hern=c3=a1ndez_Tortosa?= Subject: Add SCRAM support Message-ID: <95dea232-aeeb-d619-e917-abf32b44ef8a@8kdata.com> Date: Sun, 11 Jun 2017 23:34:44 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.1.1 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-jdbc Precedence: bulk Sender: pgsql-jdbc-owner@postgresql.org Hi list! Hopefully this is good news, I have submitted a PR adding SCRAM support to the driver: https://github.com/pgjdbc/pgjdbc/pull/842 PR is very simple on itself, since most of the work has been done on this external SCRAM library: https://github.com/ongres/scram This library was purpose-written for pgjdbc, but with the idea that it could be easily re-used by third parties. TODOs: - pgjdbc: * Patch is not integrated with current pgjdbc test system. Contributions are welcome, I will focus my efforts on improving now the library! * I guess patch needs the "magic macros" that prevent the code from being included in Java < 8 versions - library: * Current version is 1.0.0-beta2. I will bump the version to 1.0.0 once StringPrep support is added and any bugs are ironed out, such that pgjdbc release will depend on 1.0.0. * Library is currently decently tested (>70 unit tests) but more work will be done here Testing, contributions and ideas are welcome. Thanks! Álvaro -- Álvaro Hernández Tortosa ----------- <8K>data -- Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-jdbc