summaryrefslogtreecommitdiff
path: root/contrib/dblink/dblink.c
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/dblink/dblink.c')
-rw-r--r--contrib/dblink/dblink.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/contrib/dblink/dblink.c b/contrib/dblink/dblink.c
index 092f0753ff5..1b2d72c6def 100644
--- a/contrib/dblink/dblink.c
+++ b/contrib/dblink/dblink.c
@@ -3095,6 +3095,13 @@ is_valid_dblink_option(const PQconninfoOption *options, const char *option,
return false;
/*
+ * Disallow OAuth options for now, since the builtin flow communicates on
+ * stderr by default and can't cache tokens yet.
+ */
+ if (strncmp(opt->keyword, "oauth_", strlen("oauth_")) == 0)
+ return false;
+
+ /*
* If the option is "user" or marked secure, it should be specified only
* in USER MAPPING. Others should be specified only in SERVER.
*/