尚未检测到更新。GitHub 发布版本后会显示在这里。
个人 GitHub 账号下公开仓库的所有者可以登录并验证所有权,自行管理介绍,无需管理员批准。
登录并生成验证文件,在 30 分钟内将其提交到此仓库的默认分支。其他分支或分叉仓库中的文件无效。然后在下方检查文件,即可无需管理员批准直接管理项目。请保留文件以维持管理权限。
如需登录,将前往登录页面。登录后请回到此处,再次点击所选的验证按钮。
在项目文件夹中运行 /nomorevibe verify,即可验证所有权并自行管理介绍。
一分钟完成验证正在加载完整 README。 以下为已保存的摘录。
CMU student emergency loan system. Next.js 16 + Prisma + Supabase Postgres. Vercel hosts a demo
only; the client receives the source code and the database schema.
The app uses the OAuth 2.0 authorization-code flow with a client secret to sign in with a
CMU account. The client secret and access token are used only on the server. The browser
receives an encrypted, HTTP-only cookie containing the CMU BasicInfo response; access and
refresh tokens are not stored in the cookie.查看完整 README ↗CMU student emergency loan system. Next.js 16 + Prisma + Supabase Postgres. Vercel hosts a demo only; the client receives the source code and the database schema.
The app uses the OAuth 2.0 authorization-code flow with a client secret to sign in with a CMU account. The client secret and access token are used only on the server. The browser receives an encrypted, HTTP-only cookie containing the CMU BasicInfo response; access and refresh tokens are not stored in the cookie.
Register the web redirect URI http://localhost:8080/metang/api/auth/callback in Entra. For
federated sign-out, also register http://localhost:8080/metang/login (see
docs/CMU-ENTRA-SSO.md).
Add the delegated permission Mis.Account.Read.Me.Basicinfo from CMU API.
Copy .env.example to .env and enter the application ID, client secret, and a random
SESSION_SECRET of at least 32 characters. For example, generate one with
openssl rand -base64 32.
Start the development server on the port used by the registered callback:
npm run dev
This needs INFISICAL_ENV set in .env; it stops without it. With the Infisical CLI it runs
under infisical run --env <INFISICAL_ENV>. Without the CLI it uses the values in the local
.env. npm run dev-normal skips this wrapper.
Open http://localhost:8080 and select เข้าสู่ระบบด้วย CMU Account.
For another host, set CALLBACK_URL to https://<host>/<sub path>/api/auth/callback and register
it in Entra, and use HTTPS. The app overwrites post_logout_redirect_uri in LOGOUT_URL with
<origin>/<sub path>/login, so register that address for federated sign-out. <sub path> is
PUBLIC_SUBPATH (/metang by default). See docs/CMU-ENTRA-SSO.md.
Developers: docs/documentation/developer-guide.en.md (Thai: developer-guide.th.md). Client IT staff: docs/documentation/maintenance-guide.en.md (Thai: maintenance-guide.th.md).