尚未偵測到更新。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).