built with Hono.js & SvelteKit
Free IDaas And Single Sign-On Service
/auth/authorize
GET/auth/token
POST/auth/userinfo
GET/auth/revoke
POST/$lang/login
(以下需要登录 below need login)/$lang/dashboard
/api/apps
GET/POST/api/apps/:id
GET/PUT/api/apps/:id/secret
POST/DELETE/api/users
GET/api/users/:id
GET/PUT/POST/api/users/:id/forbidden
PUT/POST/api/users/:id/:provider
DELETEPackage | Meta | Changelog |
---|---|---|
@hono-dev/auth-github | Changelog | |
@hono-dev/auth-alipay | Changelog | |
@hono-dev/auth-afdian | Changelog | |
@hono-dev/powered-by | Changelog |
[!IMPORTANT] 如果需要定制化的开发,比如删除/新增登录方式,则需要具备专业的开发知识,或者联系我进行付费定制。
本地开发
。注意:GITHUB_
前缀,所以我改成了 GH_
前缀,但代码中没有更改,只在 Workflow 中映射bun
进行开发apps/website/.dev.vars
将 AFDIAN_CLIENT_ID
、AFDIAN_CLIENT_SECRET
等环境变量进行配置。bun install && bun run build
AFDIAN_CLIENT_ID=
AFDIAN_CLIENT_SECRET=
AFDIAN_CALLBACK_URL=
GITHUB_ID=
GITHUB_SECRET=
GITHUB__CALLBACK_URL=optional
ALIPAY_APP_ID=
ALIPAY_CALLBACK_URL=
ALIPAY_PRIVATE_KEY=
SESSION_KEY=optional
SESSION_SECRET=
apps/website
目录下初始化数据库: npx wrangler d1 migrations apply sso --local
bun run build && bun run dev
apps/website/.wrangler/state/v3/d1/miniflare-D1DatabaseObject
下的数据库,通过 SQLite 软件,将你的第一个用户类型 type
改为 admin
[!IMPORTANT] If you need customized development, such as deleting/adding login methods, you need to have professional development knowledge, or contact me for paid customization.
Local Development
. Note:GITHUB_
prefix, so I changed it to the GH_
prefix, but the code has not been changed, only mapped in the Workflowbun
for development.apps/website/.dev.vars
and configure environment variables such as AFDIAN_CLIENT_ID
, AFDIAN_CLIENT_SECRET
.bun install && bun bun build
AFDIAN_CLIENT_ID=
AFDIAN_CLIENT_SECRET=
AFDIAN_CALLBACK_URL=
GITHUB_ID=
GITHUB_SECRET=
GITHUB__CALLBACK_URL=optional
ALIPAY_APP_ID=
ALIPAY_CALLBACK_URL=
ALIPAY_PRIVATE_KEY=
SESSION_KEY=optional
SESSION_SECRET=
apps/website
and init database with: npx wrangler d1 migrations apply sso --local
bun run build && bun run dev
apps/website/.wrangler/state/v3/d1/miniflare-D1DatabaseObject
using SQLite software, change your first user type type
to admin
维护者 Owner: Willin Wang
如果您对本项目感兴趣,可以通过以下方式支持我:
Donation ways:
Apache-2.0