Skip to content

About

ErisPulse 统一身份中心(OAuth Provider)与创作者工作台

Resources

Code of conduct

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

English | 简体中文 | 繁體中文 | 日本語 | Русский

ErisPulse-Workbench

ErisPulse-Workbench

ErisPulse unified identity center (OAuth Provider) & creator workbench

License ErisPulse


Deploy

wrangler login
wrangler d1 create erispulse-workbench   # put database_id into wrangler.toml
wrangler d1 execute erispulse-workbench --remote --file=schema.sql
wrangler deploy

The first registered account becomes admin.

Environment variables (optional)

Variable Purpose
GITHUB_CLIENT_ID/SECRET GitHub OAuth login
CODEBERG_CLIENT_ID/SECRET Codeberg OAuth login
YUNHU_CLIENT_ID/SECRET Yunhu OAuth login
SMTP_HOST/PORT/USER/PASS, MAIL_FROM Email verification codes
MODULE_REPO_TOKEN Dispatch module-management operations to ModuleRepo
CF_DNS_TOKEN, CF_ZONE_ID Hosted domains (plugin-<label>.erisdev.com); unset = feature reports 503 UNCONFIGURED. Deploy guide: domains-worker/README.md

Unconfigured login methods are hidden automatically.

Hosted domains

Published modules can get a free subdomain (plugin-<label>.erisdev.com) from the "Hosted domains" page: serve a git repo branch directly as the site (GitHub / Codeberg / self-hosted Gitea·Forgejo / GitLab), upload a static site zip (≤5MB, hosted on R2), set up a 301 redirect, or point proxied DNS records at an own server. Limits: 2 domains per module and 10 per account. Ownership is verified against the module's registered repository or a verification file; abusive domains can be disabled by admins.

OAuth integration

Endpoint Method Description
/oauth/authorize GET Authorization entry, params client_id redirect_uri state
/oauth/token POST Exchange code + client_secret for access_token
/api/userinfo GET Bearer; returns uid/username/display_name/role

Each login method requires an OAuth app on the corresponding platform, with the callback set to https://<your-domain>/ (same origin as the login entry). Any logged-in user can register a client on the "Connected apps" page (the client_secret is shown only once at generation).

Structure

public/             Frontend (static)
public/vendor/      Third-party single-file libs (qrcode-generator, MIT)
src/worker.js       Worker backend (identity, modules, domains API)
src/domains.js      Hosted-domain site serving (*.plugin.erisdev.com)
.github/workflows/  Wildcard certificate renewal for *.plugin.erisdev.com
schema.sql          D1 schema

License

MIT (public/vendor/qrcode.js from qrcode-generator, MIT)

About

ErisPulse 统一身份中心(OAuth Provider)与创作者工作台

Resources

Code of conduct

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages