Go to the source code of this file.
◆ pg_start_oauthbearer()
Definition at line 3067 of file oauth-curl.c.
3068{
3071
3073 return -1;
3074
3075
3076
3077
3078
3079
3083
3086
3087
3088
3089
3090
3091
3095
3096
3097
3098
3099
3100
3102
3105
3106
3108 if (!conninfo)
3110
3112 {
3113 if (!opt->val)
3114 continue;
3115
3116 if (
strcmp(opt->keyword,
"oauth_client_id") == 0)
3117 {
3119 if (!
actx->client_id)
3121 }
3122 else if (
strcmp(opt->keyword,
"oauth_client_secret") == 0)
3123 {
3125 if (!
actx->client_secret)
3127 }
3128 }
3129
3132
3133 actx->discovery_uri =
request->v1.openid_configuration;
3136
3140
3142 {
3144 return -1;
3145 }
3146
3148 {
3150 return -1;
3151 }
3152
3153 return 0;
3154
3156 if (conninfo)
3158
3160 return -1;
3161}
#define Assert(condition)
PQconninfoOption * PQconninfo(PGconn *conn)
void PQconninfoFree(PQconninfoOption *connOptions)
static bool setup_multiplexer(struct async_ctx *actx)
static void append_actx_error(PGoauthBearerRequestV2 *req, struct async_ctx *actx)
static PostgresPollingStatusType pg_fe_run_oauth_flow(PGconn *conn, struct PGoauthBearerRequest *request, int *altsock)
static void pg_fe_cleanup_oauth_flow(PGconn *conn, PGoauthBearerRequest *request)
static bool initialize_curl(PGoauthBearerRequestV2 *req)
static bool setup_curl_handles(struct async_ctx *actx)
bool oauth_unsafe_debugging_enabled(void)
void initPQExpBuffer(PQExpBuffer str)
References append_actx_error(), Assert, calloc, conn, fb(), initialize_curl(), initPQExpBuffer(), _PQconninfoOption::keyword, libpq_gettext, oauth_unsafe_debugging_enabled(), pg_fe_cleanup_oauth_flow(), pg_fe_run_oauth_flow(), PGINVALID_SOCKET, PQconninfo(), PQconninfoFree(), setup_curl_handles(), and setup_multiplexer().