Skip to content

Commit

Permalink
Inform user of unsupported scram auth method
Browse files Browse the repository at this point in the history
SCRAM-SHA-256 was introduced[1] as an authentication method into
PostgreSQL 10. This commit only informs the user that this driver does
not (yet) support this authentication method.

[1] https://git.postgresql.org/gitweb/?p=postgresql.git;a=commitdiff;h=818fd4a67d610991757b610755e3065fb99d80a5
  • Loading branch information
Feike Steenbergen committed Jun 2, 2017
1 parent 91f10e4 commit 7ca6f8d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions conn.go
Original file line number Diff line number Diff line change
Expand Up @@ -1132,6 +1132,8 @@ func (cn *conn) auth(r *readBuf, o values) {
if r.int32() != 0 {
errorf("unexpected authentication response: %q", t)
}
case 10:
errorf("Server requests scram authentication method. The pq driver does not support this.")
default:
errorf("unknown authentication response: %d", code)
}
Expand Down

0 comments on commit 7ca6f8d

Please sign in to comment.