Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inform user of unsupported scram auth method #621

Closed
wants to merge 1 commit into from

Conversation

feikesteenbergen
Copy link

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
Author

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

@ptman
Copy link

ptman commented Apr 16, 2019

scram auth was merged?

@feikesteenbergen
Copy link
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