[PR #245] [MERGED] feat: implement OAuth functionality #397

Closed
opened 2026-02-16 01:15:51 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/langgenius/dify-plugin-daemon/pull/245
Author: @Yeuoly
Created: 4/25/2025
Status: Merged
Merged: 4/27/2025
Merged by: @Yeuoly

Base: mainHead: feat/oauth


📝 Commits (2)

  • 74c732e feat: implement OAuth functionality in plugin daemon
  • c74d68e feat: add OAuth endpoints for authorization and credentials retrieval

📊 Changes

10 files changed (+197 additions, -2 deletions)

View changed files

📝 internal/core/plugin_daemon/access_types/access.go (+8 -2)
internal/core/plugin_daemon/oauth_service.go (+30 -0)
internal/server/controllers/oauth.go (+42 -0)
📝 internal/server/http_server.go (+2 -0)
internal/service/invoke_oauth.go (+48 -0)
pkg/entities/oauth_entities/oauth.go (+9 -0)
pkg/entities/plugin_entities/datasource_declaration.go (+9 -0)
pkg/entities/plugin_entities/oauth.go (+34 -0)
📝 pkg/entities/plugin_entities/tool_declaration.go (+5 -0)
pkg/entities/requests/oauth.go (+10 -0)

📄 Description

  • Added OAuth service methods for getting authorization URLs and credentials.
  • Updated access types to include OAuth-related actions.
  • Created new controller for handling OAuth requests.
  • Introduced entities for OAuth results and requests.
  • Enhanced plugin entities to support OAuth schema in tool declarations.

🔄 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/langgenius/dify-plugin-daemon/pull/245 **Author:** [@Yeuoly](https://github.com/Yeuoly) **Created:** 4/25/2025 **Status:** ✅ Merged **Merged:** 4/27/2025 **Merged by:** [@Yeuoly](https://github.com/Yeuoly) **Base:** `main` ← **Head:** `feat/oauth` --- ### 📝 Commits (2) - [`74c732e`](https://github.com/langgenius/dify-plugin-daemon/commit/74c732e699ee28f34095ae86588b64ca0788a0bc) feat: implement OAuth functionality in plugin daemon - [`c74d68e`](https://github.com/langgenius/dify-plugin-daemon/commit/c74d68e7184c456dfc67bf6f09da2c886c51c6e9) feat: add OAuth endpoints for authorization and credentials retrieval ### 📊 Changes **10 files changed** (+197 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `internal/core/plugin_daemon/access_types/access.go` (+8 -2) ➕ `internal/core/plugin_daemon/oauth_service.go` (+30 -0) ➕ `internal/server/controllers/oauth.go` (+42 -0) 📝 `internal/server/http_server.go` (+2 -0) ➕ `internal/service/invoke_oauth.go` (+48 -0) ➕ `pkg/entities/oauth_entities/oauth.go` (+9 -0) ➕ `pkg/entities/plugin_entities/datasource_declaration.go` (+9 -0) ➕ `pkg/entities/plugin_entities/oauth.go` (+34 -0) 📝 `pkg/entities/plugin_entities/tool_declaration.go` (+5 -0) ➕ `pkg/entities/requests/oauth.go` (+10 -0) </details> ### 📄 Description - Added OAuth service methods for getting authorization URLs and credentials. - Updated access types to include OAuth-related actions. - Created new controller for handling OAuth requests. - Introduced entities for OAuth results and requests. - Enhanced plugin entities to support OAuth schema in tool declarations. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-16 01:15:51 -05:00
yindo closed this issue 2026-02-16 01:15:51 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify-plugin-daemon#397