Skip to content

Inform user of unsupported scram auth method#621

Closed
feikesteenbergen wants to merge 1 commit intolib:masterfrom
feikesteenbergen:feature/scram
Closed

Inform user of unsupported scram auth method#621
feikesteenbergen wants to merge 1 commit intolib:masterfrom
feikesteenbergen:feature/scram

Conversation

@feikesteenbergen
Copy link
Copy Markdown

SCRAM-SHA-256 was introduced as an authentication method into
PostgreSQL 10.

Currently if users connect to a PostgreSQL 10 cluster which has SCRAM authentication enabled (which is not the default) the current error message is:

panic: pq: unknown authentication response: 10

This change will still cause the connection to fail, but with a more meaningful error message:

panic: pq: Server requests scram authentication method. The pq driver does not support this.

@feikesteenbergen feikesteenbergen force-pushed the feature/scram branch 2 times, most recently from 7ca6f8d to 3031971 Compare June 2, 2017 08:18
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
@feikesteenbergen
Copy link
Copy Markdown
Author

Somehow I couldn't find issue #608 before, but basically this PR is obsolete if that one is merged.

@ptman
Copy link
Copy Markdown

ptman commented Apr 16, 2019

scram auth was merged?

@feikesteenbergen
Copy link
Copy Markdown
Author

Yes, so this is now obsolete

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants