Skip to content

omni_auth

Basic session management

omnigres · Basic session management

Overview

IDExtensionPackageVersionCategoryLicenseLanguage
2941omni_authomnigres0.1.3FEATApache-2.0C
AttributeHas BinaryHas LibraryNeed LoadHas DDLRelocatableTrusted
----d--NoNoNoYesnono

Packages

TypeRepoVersionPG Major CompatibilityPackage PatternDependencies
EXTPIGSTY0.1.319 18 17 16 15omnigresomni_types, omni_id, pgcrypto, btree_gist, omni_polyfill
RPMPIGSTY2026021219 18 17 16 15omnigres_$vpostgresql$v-contrib, postgresql$v-plpython3, python3-pip
DEBPIGSTY2026021219 18 17 16 15postgresql-$v-omnigrespostgresql-plpython3-$v, python3-pip
Linux / PGPG19PG18PG17PG16PG15
el8.x86_64N/APIGSTY 20260212PIGSTY 20260212PIGSTY 20260212PIGSTY 20260212
el8.aarch64N/APIGSTY 20260212PIGSTY 20260212PIGSTY 20260212PIGSTY 20260212
el9.x86_64N/APIGSTY 20260212PIGSTY 20260212PIGSTY 20260212PIGSTY 20260212
el9.aarch64N/APIGSTY 20260212PIGSTY 20260212PIGSTY 20260212PIGSTY 20260212
el10.x86_64N/APIGSTY 20260212PIGSTY 20260212PIGSTY 20260212PIGSTY 20260212
el10.aarch64N/APIGSTY 20260212PIGSTY 20260212PIGSTY 20260212PIGSTY 20260212
d12.x86_64N/APIGSTY 20260212PIGSTY 20260212PIGSTY 20260212PIGSTY 20260212
d12.aarch64N/APIGSTY 20260212PIGSTY 20260212PIGSTY 20260212PIGSTY 20260212
d13.x86_64N/APIGSTY 20260212PIGSTY 20260212PIGSTY 20260212PIGSTY 20260212
d13.aarch64N/APIGSTY 20260212PIGSTY 20260212PIGSTY 20260212PIGSTY 20260212
u22.x86_64N/APIGSTY 20260212PIGSTY 20260212PIGSTY 20260212PIGSTY 20260212
u22.aarch64N/APIGSTY 20260212PIGSTY 20260212PIGSTY 20260212PIGSTY 20260212
u24.x86_64N/APIGSTY 20260212PIGSTY 20260212PIGSTY 20260212PIGSTY 20260212
u24.aarch64N/APIGSTY 20260212PIGSTY 20260212PIGSTY 20260212PIGSTY 20260212
u26.x86_64N/APIGSTY 20260212PIGSTY 20260212PIGSTY 20260212PIGSTY 20260212
u26.aarch64N/APIGSTY 20260212PIGSTY 20260212PIGSTY 20260212PIGSTY 20260212

Source

pig build pkg omnigres;		# build rpm/deb

Install

Make sure PGDG and PIGSTY repo available:

pig repo add pgsql -u   # add both repo and update cache

Install this extension with pig:

pig install omnigres;		# install by package name
pig install omni_auth;		# install by extension name

pig install omni_auth -v 18;   # install for PG 18
pig install omni_auth -v 17;   # install for PG 17
pig install omni_auth -v 16;   # install for PG 16
pig install omni_auth -v 15;   # install for PG 15

Create this extension with:

CREATE EXTENSION omni_auth CASCADE; -- requires omni_types, omni_id, pgcrypto, btree_gist, omni_polyfill

Usage

omni_auth: Basic session management

The omni_auth extension provides primitives for building authentication systems. It currently supports password-based authentication.

Authentication Subject

An authentication subject represents the target of authentication – typically a user, but also covers unrecognized identifiers (such as login or e-mail) to support tracking authentication attempts against non-existent accounts and third-party OAuth authentication-as-signup scenarios.

Core Functions

omni_auth.authenticate(Authenticator, authentication_subject_id)

Dispatched over Authenticator types, accepts an authenticator and a subject ID. Returns a value of type Authentication that implements omni_auth.successful_authentication.

omni_auth.successful_authentication(Authentication)

Returns a boolean indicating whether the authentication was successful.

Supported Implementations

  • Password authentication (dispatched via the password Authenticator type)

Table reader