PostgreSQL Source Code
git master
Toggle main menu visibility
Main Page
Related Pages
Namespaces
Namespace List
Namespace Members
All
a
c
d
g
h
i
k
l
m
p
r
s
t
Functions
Variables
Data Structures
Data Structures
Data Structure Index
Class Hierarchy
Data Fields
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
c
d
f
h
i
n
o
p
r
s
t
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
Files
File List
Globals
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Enumerator
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Macros
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
•
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
22
enum
fe_oauth_step
23
{
24
FE_OAUTH_INIT
,
25
FE_OAUTH_BEARER_SENT
,
26
FE_OAUTH_REQUESTING_TOKEN
,
27
FE_OAUTH_SERVER_ERROR
,
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
*/
35
typedef
struct
36
{
37
enum
fe_oauth_step
step
;
38
39
PGconn
*
conn
;
40
void
*
async_ctx
;
41
42
void
*
builtin_flow
;
43
}
fe_oauth_state
;
44
45
extern
void
pqClearOAuthToken
(
PGconn
*
conn
);
46
extern
bool
oauth_unsafe_debugging_enabled
(
void
);
47
extern
bool
use_builtin_flow
(
PGconn
*
conn
,
fe_oauth_state
*
state
);
48
49
/* Mechanisms in fe-auth-oauth.c */
50
extern
const
pg_fe_sasl_mech
pg_oauth_mech
;
51
52
#endif
/* FE_AUTH_OAUTH_H */
pg_oauth_mech
const pg_fe_sasl_mech pg_oauth_mech
Definition:
fe-auth-oauth.c:40
fe_oauth_step
fe_oauth_step
Definition:
fe-auth-oauth.h:23
FE_OAUTH_REQUESTING_TOKEN
@ FE_OAUTH_REQUESTING_TOKEN
Definition:
fe-auth-oauth.h:26
FE_OAUTH_SERVER_ERROR
@ FE_OAUTH_SERVER_ERROR
Definition:
fe-auth-oauth.h:27
FE_OAUTH_INIT
@ FE_OAUTH_INIT
Definition:
fe-auth-oauth.h:24
FE_OAUTH_BEARER_SENT
@ FE_OAUTH_BEARER_SENT
Definition:
fe-auth-oauth.h:25
pqClearOAuthToken
void pqClearOAuthToken(PGconn *conn)
Definition:
fe-auth-oauth.c:1353
use_builtin_flow
bool use_builtin_flow(PGconn *conn, fe_oauth_state *state)
Definition:
fe-auth-oauth.c:749
oauth_unsafe_debugging_enabled
bool oauth_unsafe_debugging_enabled(void)
Definition:
oauth-utils.c:149
fe-auth-sasl.h
libpq-fe.h
conn
PGconn * conn
Definition:
streamutil.c:52
fe_oauth_state
Definition:
fe-auth-oauth.h:36
fe_oauth_state::async_ctx
void * async_ctx
Definition:
fe-auth-oauth.h:40
fe_oauth_state::step
enum fe_oauth_step step
Definition:
fe-auth-oauth.h:37
fe_oauth_state::builtin_flow
void * builtin_flow
Definition:
fe-auth-oauth.h:42
fe_oauth_state::conn
PGconn * conn
Definition:
fe-auth-oauth.h:39
pg_conn
Definition:
libpq-int.h:371
pg_fe_sasl_mech
Definition:
fe-auth-sasl.h:44
state
Definition:
regguts.h:323
src
interfaces
libpq
fe-auth-oauth.h
Generated on Mon May 5 2025 12:13:31 for PostgreSQL Source Code by
1.9.4