diff --git a/README.md b/README.md index 7f65855..fb206d4 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# pg\_oidc\_validator 0.1.0 +# pg_oidc_validator OAuth validator library for PostgreSQL 18 diff --git a/src/pg_oidc_validator.cpp b/src/pg_oidc_validator.cpp index e56fec0..4648b57 100644 --- a/src/pg_oidc_validator.cpp +++ b/src/pg_oidc_validator.cpp @@ -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" // @@ -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,