Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# pg\_oidc\_validator 0.1.0
# pg_oidc_validator

OAuth validator library for PostgreSQL 18

Expand Down
5 changes: 4 additions & 1 deletion src/pg_oidc_validator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
#include "http_client.hpp"
#include "jwk.hpp"

static const char* ModuleName = "pg_oidc_validator";
static const char* ModuleVersion = "1.0.0";

extern "C" {
#include "postgres.h"
//
Expand All @@ -16,7 +19,7 @@ extern "C" {
#include "miscadmin.h"
#include "utils/guc.h"

PG_MODULE_MAGIC;
PG_MODULE_MAGIC_EXT(.name = ModuleName, .version = ModuleVersion);
}

bool validate_token(const ValidatorModuleState* state, const char* token, const char* role,
Expand Down