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
29
30typedef struct
31{
33
35 void *async_ctx;
36
37 bool builtin;
40
41extern void pqClearOAuthToken(PGconn *conn);
42extern bool oauth_unsafe_debugging_enabled(void);
43
44/* Mechanisms in fe-auth-oauth.c */
46
47#endif /* FE_AUTH_OAUTH_H */
const pg_fe_sasl_mech pg_oauth_mech
fe_oauth_step
@ FE_OAUTH_REQUESTING_TOKEN
@ FE_OAUTH_SERVER_ERROR
@ FE_OAUTH_INIT
@ FE_OAUTH_BEARER_SENT
void pqClearOAuthToken(PGconn *conn)
bool oauth_unsafe_debugging_enabled(void)
Definition oauth-utils.c:82
PGconn * conn
Definition streamutil.c:52
enum fe_oauth_step step