omni_auth
Omnigres 基础会话认证管理模块
omnigres · Omnigres 基础会话认证管理模块
概览
| ID | 扩展 | 软件包 | 版本 | 类别 | 许可证 | 编程语言 |
|---|---|---|---|---|---|---|
| 2941 | omni_auth | omnigres | 0.1.3 | FEAT | Apache-2.0 | C |
| 属性 | 可执行文件 | 动态库 | 需要预加载 | 需要建扩展 | 可迁移 | 可信 |
|---|---|---|---|---|---|---|
| ----d-- | 否 | 否 | 否 | 是 | 否 | 否 |
软件包
| 类型 | 仓库 | 版本 | 兼容的 PostgreSQL 大版本 | 包名模式 | 依赖 |
|---|---|---|---|---|---|
| EXT | PIGSTY | 0.1.3 | 19 18 17 16 15 | omnigres | omni_types, omni_id, pgcrypto, btree_gist, omni_polyfill |
| RPM | PIGSTY | 20260212 | 19 18 17 16 15 | omnigres_$v | postgresql$v-contrib, postgresql$v-plpython3, python3-pip |
| DEB | PIGSTY | 20260212 | 19 18 17 16 15 | postgresql-$v-omnigres | postgresql-plpython3-$v, python3-pip |
| Linux / PG | PG19 | PG18 | PG17 | PG16 | PG15 |
|---|---|---|---|---|---|
| el8.x86_64 | N/A | PIGSTY 20260212 | PIGSTY 20260212 | PIGSTY 20260212 | PIGSTY 20260212 |
| el8.aarch64 | N/A | PIGSTY 20260212 | PIGSTY 20260212 | PIGSTY 20260212 | PIGSTY 20260212 |
| el9.x86_64 | N/A | PIGSTY 20260212 | PIGSTY 20260212 | PIGSTY 20260212 | PIGSTY 20260212 |
| el9.aarch64 | N/A | PIGSTY 20260212 | PIGSTY 20260212 | PIGSTY 20260212 | PIGSTY 20260212 |
| el10.x86_64 | N/A | PIGSTY 20260212 | PIGSTY 20260212 | PIGSTY 20260212 | PIGSTY 20260212 |
| el10.aarch64 | N/A | PIGSTY 20260212 | PIGSTY 20260212 | PIGSTY 20260212 | PIGSTY 20260212 |
| d12.x86_64 | N/A | PIGSTY 20260212 | PIGSTY 20260212 | PIGSTY 20260212 | PIGSTY 20260212 |
| d12.aarch64 | N/A | PIGSTY 20260212 | PIGSTY 20260212 | PIGSTY 20260212 | PIGSTY 20260212 |
| d13.x86_64 | N/A | PIGSTY 20260212 | PIGSTY 20260212 | PIGSTY 20260212 | PIGSTY 20260212 |
| d13.aarch64 | N/A | PIGSTY 20260212 | PIGSTY 20260212 | PIGSTY 20260212 | PIGSTY 20260212 |
| u22.x86_64 | N/A | PIGSTY 20260212 | PIGSTY 20260212 | PIGSTY 20260212 | PIGSTY 20260212 |
| u22.aarch64 | N/A | PIGSTY 20260212 | PIGSTY 20260212 | PIGSTY 20260212 | PIGSTY 20260212 |
| u24.x86_64 | N/A | PIGSTY 20260212 | PIGSTY 20260212 | PIGSTY 20260212 | PIGSTY 20260212 |
| u24.aarch64 | N/A | PIGSTY 20260212 | PIGSTY 20260212 | PIGSTY 20260212 | PIGSTY 20260212 |
| u26.x86_64 | N/A | PIGSTY 20260212 | PIGSTY 20260212 | PIGSTY 20260212 | PIGSTY 20260212 |
| u26.aarch64 | N/A | PIGSTY 20260212 | PIGSTY 20260212 | PIGSTY 20260212 | PIGSTY 20260212 |
源码
安装
在数据库中创建扩展。
用法
omni_auth 扩展提供构建认证系统的基本原语,目前支持基于密码的认证。
认证主体
认证主体代表认证的目标——通常是用户,但也涵盖未识别的标识符(如登录名或电子邮件),以支持对不存在账户的认证尝试跟踪以及第三方 OAuth 认证即注册场景。
核心函数
omni_auth.authenticate(Authenticator, authentication_subject_id)
基于 Authenticator 类型分发,接受认证器和主体 ID。返回实现了 omni_auth.successful_authentication 接口的 Authentication 类型值。
omni_auth.successful_authentication(Authentication)
返回布尔值,表示认证是否成功。
支持的实现
- 密码认证(通过密码
Authenticator类型分发)