dispchar for oauth_client_secret
Noah Misch <noah@leadboat.com>
From: Noah Misch <noah@leadboat.com>
To: jacob.champion@enterprisedb.com, pgsql-hackers@postgresql.org
Date: 2025-04-15T19:14:35Z
Lists: pgsql-hackers
commit b3f0be7 wrote:
+ {"oauth_scope", NULL, NULL, NULL,
+ "OAuth-Scope", "", 15,
+ offsetof(struct pg_conn, oauth_scope)},
The field containing "" is documented as follows:
char *dispchar; /* Indicates how to display this field in a
* connect dialog. Values are: "" Display
* entered value as is "*" Password field -
* hide value "D" Debug option - don't show
* by default */
I suspect this should use .dispchar="*" to encourage UIs to display
oauth_client_secret like a password field. Thoughts?
[I didn't review commit b3f0be7, but this caught my attention.]
Commits
-
oauth: Classify oauth_client_secret as a password
- e974f1c2164b 18.0 landed
-
oauth: Disallow OAuth connections via postgres_fdw/dblink
- d2e7d2a09d7d 18.0 landed
-
Add support for OAUTHBEARER SASL mechanism
- b3f0be788afc 18.0 cited