PostgreSQL Source Code git master
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
fe-auth-oauth.h
Go to the documentation of this file.
1/*-------------------------------------------------------------------------
2 *
3 * fe-auth-oauth.h
4 *
5 * Definitions for OAuth authentication implementations
6 *
7 * Portions Copyright (c) 1996-2025, PostgreSQL Global Development Group
8 * Portions Copyright (c) 1994, Regents of the University of California
9 *
10 * src/interfaces/libpq/fe-auth-oauth.h
11 *
12 *-------------------------------------------------------------------------
13 */
14
15#ifndef FE_AUTH_OAUTH_H
16#define FE_AUTH_OAUTH_H
17
18#include "libpq-fe.h"
19#include "libpq-int.h"
20
21
23{
28};
29
30typedef struct
31{
33
35 void *async_ctx;
37
40extern void pqClearOAuthToken(PGconn *conn);
41extern bool oauth_unsafe_debugging_enabled(void);
42
43/* Mechanisms in fe-auth-oauth.c */
45
46#endif /* FE_AUTH_OAUTH_H */
PostgresPollingStatusType pg_fe_run_oauth_flow(PGconn *conn)
void pg_fe_cleanup_oauth_flow(PGconn *conn)
const pg_fe_sasl_mech pg_oauth_mech
Definition: fe-auth-oauth.c:35
fe_oauth_step
Definition: fe-auth-oauth.h:23
@ FE_OAUTH_REQUESTING_TOKEN
Definition: fe-auth-oauth.h:26
@ FE_OAUTH_SERVER_ERROR
Definition: fe-auth-oauth.h:27
@ FE_OAUTH_INIT
Definition: fe-auth-oauth.h:24
@ FE_OAUTH_BEARER_SENT
Definition: fe-auth-oauth.h:25
void pqClearOAuthToken(PGconn *conn)
bool oauth_unsafe_debugging_enabled(void)
PostgresPollingStatusType
Definition: libpq-fe.h:113
PGconn * conn
Definition: streamutil.c:52
enum fe_oauth_step step
Definition: fe-auth-oauth.h:32