PostgreSQL Source Code
git master
Loading...
Searching...
No Matches
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-2026, 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
typedef
struct
31
{
32
enum
fe_oauth_step
step
;
33
34
PGconn
*
conn
;
35
void
*
async_ctx
;
36
37
bool
builtin
;
38
void
*
builtin_flow
;
39
}
fe_oauth_state
;
40
41
extern
void
pqClearOAuthToken
(
PGconn
*
conn
);
42
extern
bool
oauth_unsafe_debugging_enabled
(
void
);
43
44
/* Mechanisms in fe-auth-oauth.c */
45
extern
const
pg_fe_sasl_mech
pg_oauth_mech
;
46
47
#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:1411
oauth_unsafe_debugging_enabled
bool oauth_unsafe_debugging_enabled(void)
Definition
oauth-utils.c:82
fe-auth-sasl.h
libpq-fe.h
conn
PGconn * conn
Definition
streamutil.c:52
fe_oauth_state
Definition
fe-auth-oauth.h:31
fe_oauth_state::async_ctx
void * async_ctx
Definition
fe-auth-oauth.h:35
fe_oauth_state::step
enum fe_oauth_step step
Definition
fe-auth-oauth.h:32
fe_oauth_state::builtin
bool builtin
Definition
fe-auth-oauth.h:37
fe_oauth_state::builtin_flow
void * builtin_flow
Definition
fe-auth-oauth.h:38
fe_oauth_state::conn
PGconn * conn
Definition
fe-auth-oauth.h:34
pg_conn
Definition
libpq-int.h:372
pg_fe_sasl_mech
Definition
fe-auth-sasl.h:44
src
interfaces
libpq
fe-auth-oauth.h
Generated on Fri Mar 20 2026 12:13:17 for PostgreSQL Source Code by
1.9.8