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 "fe-auth-sasl.h"
19#include "libpq-fe.h"
20
21
23{
28};
29
30/*
31 * This struct is exported to the libpq-oauth module. If changes are needed
32 * during backports to stable branches, please keep ABI compatibility (no
33 * changes to existing members, add new members at the end, etc.).
34 */
35typedef struct
36{
38
40 void *async_ctx;
41
44
45extern void pqClearOAuthToken(PGconn *conn);
46extern bool oauth_unsafe_debugging_enabled(void);
48
49/* Mechanisms in fe-auth-oauth.c */
51
52#endif /* FE_AUTH_OAUTH_H */
const pg_fe_sasl_mech pg_oauth_mech
Definition: fe-auth-oauth.c:40
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 use_builtin_flow(PGconn *conn, fe_oauth_state *state)
bool oauth_unsafe_debugging_enabled(void)
Definition: oauth-utils.c:149
PGconn * conn
Definition: streamutil.c:52
enum fe_oauth_step step
Definition: fe-auth-oauth.h:37
void * builtin_flow
Definition: fe-auth-oauth.h:42
Definition: regguts.h:323