~/talk

Building OAuth2 Validator Extension for PostgreSQL 18

Talkat PGConf India 2026 · 2026-03-11..03-13· [security, databases]
links:none on file
slides:none on file

Demonstrates a working OAuth2 validator extension for PostgreSQL 18 that verifies tokens from IdPs like Keycloak and Okta by implementing the required C API callbacks (validator startup, shutdown, validate_token) and integrating the extension via postgresql.conf and pg_hba.conf. Uses libcurl and OpenSSL for network and crypto, handles both online introspection and offline JWT validation, implements JWKS caching and key rotation, enforces audience and scope checks and supports delegate identity mapping; offline mode reduces latency but needs cache refresh logic.

AI-written summary · about

  1. 0:00Introduction
  2. 1:10Why OAuth2 matters
  3. 5:25Prerequisites and setup
  4. 9:21Validator module need
  5. 13:13Validation strategies
  6. 17:56Offline validation deep dive
  7. 24:00Security best practices
  8. 25:23Implementation tips
  9. 27:00Q&A and references
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.