[HACKERS] SCRAM protocol documentation - Mailing list pgsql-hackers

From Peter Eisentraut
Subject [HACKERS] SCRAM protocol documentation
Date
Msg-id 56e90a1f-15f9-ccfb-a2ce-f7d5e4c2c85e@2ndquadrant.com
Whole thread Raw
Responses Re: [HACKERS] SCRAM protocol documentation  (Álvaro Hernández Tortosa <aht@8kdata.com>)
List pgsql-hackers
The SCRAM protocol documentation
(https://www.postgresql.org/docs/devel/static/sasl-authentication.html)
states

"To avoid confusion, the client should use pg_same_as_startup_message as
the username in the client-first-message."

However, the client implementation in libpq doesn't actually do that, it
sends an empty string for the user name.  I find no other reference to
"pg_same_as_startup_message" in the sources.  Should the documentation
be updated?

Relatedly, the SCRAM specification doesn't appear to allow omitting the
user name in this manner.  Why don't we just send the actual user name,
even though it's redundant with the startup message?

-- 
Peter Eisentraut              http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services



pgsql-hackers by date:

Previous
From: Andres Freund
Date:
Subject: Re: [HACKERS] [BUGS] Replication to Postgres 10 on Windows is broken
Next
From: "Augustine, Jobin"
Date:
Subject: Re: [HACKERS] [BUGS] Replication to Postgres 10 on Windows is broken