|
PostgreSQL Source Code git master
|
#include "postgres.h"#include "fmgr.h"#include "libpq/oauth.h"#include "miscadmin.h"#include "utils/guc.h"#include "utils/memutils.h"
Go to the source code of this file.
Macros | |
| #define | PRIVATE_COOKIE ((void *) 13579) |
Variables | |
| PG_MODULE_MAGIC | |
| static const OAuthValidatorCallbacks | validator_callbacks |
| static char * | authn_id = NULL |
| static bool | authorize_tokens = true |
| static char * | error_detail = NULL |
| static bool | internal_error = false |
| static bool | invalid_hba = false |
| static const char * | hba_opts [] |
Definition at line 128 of file validator.c.
Definition at line 73 of file validator.c.
References authn_id, authorize_tokens, DefineCustomBoolVariable(), DefineCustomStringVariable(), error_detail, fb(), internal_error, invalid_hba, MarkGUCPrefixReserved(), and PGC_SIGHUP.
| const OAuthValidatorCallbacks * _PG_oauth_validator_module_init | ( | void | ) |
Definition at line 123 of file validator.c.
References validator_callbacks, and validator_callbacks.
|
static |
Definition at line 186 of file validator.c.
References ValidatorModuleResult::authn_id, authn_id, authorize_tokens, ValidatorModuleResult::authorized, elog, ERROR, ValidatorModuleResult::error_detail, error_detail, GetOAuthHBAOption(), Port::hba, internal_error, LOG, MyProcPort, HbaLine::oauth_issuer, HbaLine::oauth_scope, PRIVATE_COOKIE, and pstrdup().
|
static |
Definition at line 173 of file validator.c.
References elog, PANIC, and PRIVATE_COOKIE.
|
static |
Definition at line 134 of file validator.c.
References elog, ERROR, fb(), GetOAuthHBAOption(), hba_opts, i, invalid, invalid_hba, lengthof, PRIVATE_COOKIE, and RegisterOAuthHBAOptions().
Definition at line 41 of file validator.c.
Referenced by _PG_init(), InitializeSystemUser(), RestoreClientConnectionInfo(), and validate_token().
Definition at line 42 of file validator.c.
Referenced by _PG_init(), and validate_token().
Definition at line 43 of file validator.c.
Referenced by _PG_init(), main(), parse_basebackup_options(), and validate_token().
Definition at line 48 of file validator.c.
Referenced by validator_startup().
Definition at line 44 of file validator.c.
Referenced by _PG_init(), and validate_token().
Definition at line 45 of file validator.c.
Referenced by _PG_init(), and validator_startup().
| PG_MODULE_MAGIC |
Definition at line 22 of file validator.c.
|
static |
Definition at line 32 of file validator.c.
Referenced by _PG_oauth_validator_module_init().