承接 zrobot/flarum-gitea-org-oauth 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

zrobot/flarum-gitea-org-oauth

最新稳定版本:v0.1.5

Composer 安装命令:

composer require zrobot/flarum-gitea-org-oauth

包简介

Flarum FoF OAuth provider for logging in via Gitea, restricted to specific organizations.

README 文档

README

A minimal Flarum extension that adds a FoF OAuth provider named gitea_org.

It lets users log in/register via Gitea and restricts access to users who belong to one (or more) allowed Gitea organizations.

Features

  • Gitea OAuth Login: Allow users to login/register via Gitea
  • Organization Restriction: Only allow users from specific Gitea organizations
  • FoF Doorman Integration: Automatically bypass invite codes for OAuth registration (when Doorman is installed)

Requirements

  • Flarum ^1.8
  • FriendsOfFlarum OAuth ^1.7
  • PHP 8.1+ (tested with PHP 8.3)

Install

Option A: Path repository (offline-friendly)

  1. Copy this repo into your Flarum folder, e.g. extensions/zrobot-gitea-org-oauth
  2. Add a path repository to composer.json:
"repositories": [
  { "type": "path", "url": "extensions/zrobot-gitea-org-oauth" }
]
  1. Install:
cd /opt/flarum
composer require zrobot/flarum-gitea-org-oauth:"*"
php flarum cache:clear

Option B: VCS repository (GitHub/Gitea)

Add a VCS repository entry and require dev-main, or tag a release and require ^0.1.

Gitea setup

Create an OAuth2 application in Gitea:

  • Redirect URI: https://YOUR_FORUM_DOMAIN/auth/gitea_org

Flarum admin setup

In Admin → FoF OAuth → Providers → Gitea Org OAuth:

  • Base URL: https://gitea.example.com
  • Client ID / Client Secret: from your Gitea OAuth app
  • Allowed organizations: orgA,orgB (comma-separated, leave empty to allow all users)

Integration with FoF Doorman

If you have FoF Doorman installed, this extension automatically bypasses invite code requirements for Gitea OAuth registration:

  • ✅ Normal registration requires an invite code (if Doorman is enabled)
  • ✅ Gitea OAuth registration does NOT require an invite code
  • ✅ Works automatically when both extensions are enabled

Notes

  • This provider checks membership using GET /api/v1/user/orgs
  • If a user is not in the allowed org list, login/registration is denied
  • Leave "Allowed organizations" empty to allow all Gitea users (no org restriction)
  • Doorman bypass is automatic and always enabled when Doorman is installed

统计信息

  • 总下载量: 15
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 5
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-01-26

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固