[PR #169] [CLOSED] feat: Implement OAuth functionality with binding, login, and token re… #230

Closed
opened 2026-02-27 09:13:51 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/maillab/cloud-mail/pull/169
Author: @lansonsam
Created: 10/23/2025
Status: Closed

Base: mainHead: feature/add-new-function


📝 Commits (2)

  • 560a198 feat: Implement OAuth functionality with binding, login, and token refresh
  • 6e3a2e3 Merge branch 'main' into feature/add-new-function

📊 Changes

19 files changed (+1745 additions, -32 deletions)

View changed files

📝 mail-vue/.env.dev (+2 -1)
📝 mail-vue/src/i18n/en.js (+44 -1)
📝 mail-vue/src/i18n/zh.js (+44 -1)
mail-vue/src/request/oauth.js (+25 -0)
📝 mail-vue/src/views/login/index.vue (+140 -0)
📝 mail-vue/src/views/setting/index.vue (+249 -1)
📝 mail-vue/src/views/sys-setting/index.vue (+210 -0)
📝 mail-vue/vite.config.js (+7 -0)
mail-worker/src/api/oauth-api.js (+464 -0)
mail-worker/src/entity/oauth-binding.js (+19 -0)
📝 mail-worker/src/entity/setting.js (+17 -2)
📝 mail-worker/src/hono/webs.js (+1 -0)
📝 mail-worker/src/i18n/en.js (+7 -0)
📝 mail-worker/src/i18n/zh.js (+7 -0)
📝 mail-worker/src/init/init.js (+82 -15)
📝 mail-worker/src/security/security.js (+11 -9)
mail-worker/src/service/oauth-service.js (+153 -0)
📝 mail-worker/src/service/setting-service.js (+20 -2)
mail-worker/src/utils/oauth-utils.js (+243 -0)

📄 Description

…fresh

  • Added OAuth binding table to the database schema.
  • Introduced API endpoints for OAuth binding, unbinding, and login.
  • Implemented OAuth utilities for token exchange and user info retrieval.
  • Enhanced error handling for OAuth processes.
  • Updated internationalization files for new OAuth-related messages.
  • Added OAuth settings to the application configuration.
  • Created service layer for managing OAuth accounts and bindings.
  • Integrated OAuth login flow with state management for security.
  • Added support for multiple OAuth providers (GitHub, Google, Microsoft).

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/maillab/cloud-mail/pull/169 **Author:** [@lansonsam](https://github.com/lansonsam) **Created:** 10/23/2025 **Status:** ❌ Closed **Base:** `main` ← **Head:** `feature/add-new-function` --- ### 📝 Commits (2) - [`560a198`](https://github.com/maillab/cloud-mail/commit/560a1982f55eadb993c4aea9c4b57889c83b81a8) feat: Implement OAuth functionality with binding, login, and token refresh - [`6e3a2e3`](https://github.com/maillab/cloud-mail/commit/6e3a2e3572dc1e8d976e23b841f5c48076c3205d) Merge branch 'main' into feature/add-new-function ### 📊 Changes **19 files changed** (+1745 additions, -32 deletions) <details> <summary>View changed files</summary> 📝 `mail-vue/.env.dev` (+2 -1) 📝 `mail-vue/src/i18n/en.js` (+44 -1) 📝 `mail-vue/src/i18n/zh.js` (+44 -1) ➕ `mail-vue/src/request/oauth.js` (+25 -0) 📝 `mail-vue/src/views/login/index.vue` (+140 -0) 📝 `mail-vue/src/views/setting/index.vue` (+249 -1) 📝 `mail-vue/src/views/sys-setting/index.vue` (+210 -0) 📝 `mail-vue/vite.config.js` (+7 -0) ➕ `mail-worker/src/api/oauth-api.js` (+464 -0) ➕ `mail-worker/src/entity/oauth-binding.js` (+19 -0) 📝 `mail-worker/src/entity/setting.js` (+17 -2) 📝 `mail-worker/src/hono/webs.js` (+1 -0) 📝 `mail-worker/src/i18n/en.js` (+7 -0) 📝 `mail-worker/src/i18n/zh.js` (+7 -0) 📝 `mail-worker/src/init/init.js` (+82 -15) 📝 `mail-worker/src/security/security.js` (+11 -9) ➕ `mail-worker/src/service/oauth-service.js` (+153 -0) 📝 `mail-worker/src/service/setting-service.js` (+20 -2) ➕ `mail-worker/src/utils/oauth-utils.js` (+243 -0) </details> ### 📄 Description …fresh - Added OAuth binding table to the database schema. - Introduced API endpoints for OAuth binding, unbinding, and login. - Implemented OAuth utilities for token exchange and user info retrieval. - Enhanced error handling for OAuth processes. - Updated internationalization files for new OAuth-related messages. - Added OAuth settings to the application configuration. - Created service layer for managing OAuth accounts and bindings. - Integrated OAuth login flow with state management for security. - Added support for multiple OAuth providers (GitHub, Google, Microsoft). --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-27 09:13:51 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/cloud-mail-maillab#230
No description provided.