[PR #179] [MERGED] feat[0.4.2]: Tool OAuth #205

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

📋 Pull Request Information

Original PR: https://github.com/langgenius/dify-plugin-sdks/pull/179
Author: @Mairuis
Created: 7/14/2025
Status: Merged
Merged: 7/23/2025
Merged by: @Yeuoly

Base: mainHead: feat/plugin-oauth


📝 Commits (10+)

  • 2aedda0 chore: fix ruff issue
  • 0ec96ae feat(oauth): implement OAuth
  • 799bea4 feat(invoke-message): refactor message handling and introduce InvokeMessage class
  • b4a9ef2 feat(plugin-oauth): add credential_id and credential_type to tool parameters
  • 88f6f63 feat(plugin-oauth): add credential_id and credential_type to tool parameters
  • 8db6eea chore: update dify_plugin version to 0.5.0b4 and clean up github.yaml
  • 1621c0c chore: update plugin version to 0.1.2 in manifest.yaml
  • 3f1899a feat(session): session context and tool backwards invocation credential support
  • d846ab2 feat(oauth): session context and tool backwards invocation credential support
  • de69aca Merge branch 'main' into feat/plugin-oauth

📊 Changes

101 files changed (+3313 additions, -544 deletions)

View changed files

.gitignore (+12 -0)
📝 README.md (+3 -2)
📝 python/dify_plugin/config/config.py (+2 -3)
📝 python/dify_plugin/config/integration_config.py (+1 -1)
📝 python/dify_plugin/core/documentation/schema_doc.py (+7 -7)
📝 python/dify_plugin/core/entities/plugin/io.py (+13 -10)
📝 python/dify_plugin/core/entities/plugin/request.py (+23 -9)
📝 python/dify_plugin/core/entities/plugin/setup.py (+23 -26)
📝 python/dify_plugin/core/plugin_executor.py (+22 -7)
📝 python/dify_plugin/core/runtime.py (+55 -17)
📝 python/dify_plugin/core/server/__base/filter_reader.py (+4 -4)
📝 python/dify_plugin/core/server/__base/response_writer.py (+6 -7)
📝 python/dify_plugin/core/server/__base/writer_entities.py (+2 -3)
📝 python/dify_plugin/core/server/io_server.py (+13 -10)
📝 python/dify_plugin/core/server/router.py (+2 -2)
📝 python/dify_plugin/core/server/serverless/request_reader.py (+1 -0)
📝 python/dify_plugin/core/server/stdio/request_reader.py (+1 -0)
📝 python/dify_plugin/core/server/tcp/request_reader.py (+3 -2)
📝 python/dify_plugin/entities/__init__.py (+3 -5)
📝 python/dify_plugin/entities/agent.py (+14 -16)

...and 80 more files

📄 Description

🚀 What’s New in v0.4.2? 🚀
Welcome to version 0.4.2! This release focuses on OAuth integration, enhanced message handling, and general codebase improvements. Here’s a quick rundown:

🔑 OAuth Implementation

  • OAuth Support: OAuth has been implemented to improve authentication, enabling more secure and seamless connections with third-party services.
  • OAuth Credentials Enhancement: credential_id and credential_type have been added to tool parameters, allowing for more flexible configuration options.

🛠️ Message Handling and Improvements

  • Invoke Message Refactor: Message processing has been refactored with the new InvokeMessage feature for improved efficiency and scalability.
  • Session Context and Backwards Invocation Support: Session contexts and backwards invocation credentials are now supported, enabling deeper integrations and smoother tool communication.

📦 Codebase Updates

  • Ruff Fixes Applied: Code quality and consistency improved by applying Ruff fixes.
  • Housekeeping: Added .gitignore to exclude unnecessary files like IDE configs and secret keys, keeping the repo clean.
  • README Updates: Documentation now covers the new OAuth features for easier onboarding and reference.

Version 0.4.2 enhances integration capabilities with OAuth and fine-tunes internal processes — all designed to make your development experience smoother. Happy coding! 🎉


🔄 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-sdks/pull/179 **Author:** [@Mairuis](https://github.com/Mairuis) **Created:** 7/14/2025 **Status:** ✅ Merged **Merged:** 7/23/2025 **Merged by:** [@Yeuoly](https://github.com/Yeuoly) **Base:** `main` ← **Head:** `feat/plugin-oauth` --- ### 📝 Commits (10+) - [`2aedda0`](https://github.com/langgenius/dify-plugin-sdks/commit/2aedda0652dea6312a1cd3aa259af5fe32d79029) chore: fix ruff issue - [`0ec96ae`](https://github.com/langgenius/dify-plugin-sdks/commit/0ec96aea2aa40228fe5947b00052033aaf7da1eb) feat(oauth): implement OAuth - [`799bea4`](https://github.com/langgenius/dify-plugin-sdks/commit/799bea4c41b7fa886a85f61200dbf2ffc678376a) feat(invoke-message): refactor message handling and introduce InvokeMessage class - [`b4a9ef2`](https://github.com/langgenius/dify-plugin-sdks/commit/b4a9ef23d1bf119bc99af0b2c77cfc4966ece860) feat(plugin-oauth): add credential_id and credential_type to tool parameters - [`88f6f63`](https://github.com/langgenius/dify-plugin-sdks/commit/88f6f63905d0d58ec009c9acee77762f0db77a67) feat(plugin-oauth): add credential_id and credential_type to tool parameters - [`8db6eea`](https://github.com/langgenius/dify-plugin-sdks/commit/8db6eeaf5cfecd24ff1e429f00bf87958b1fc1f2) chore: update dify_plugin version to 0.5.0b4 and clean up github.yaml - [`1621c0c`](https://github.com/langgenius/dify-plugin-sdks/commit/1621c0c1ed6f65e25e4d6146fc7fbbbfd10a446e) chore: update plugin version to 0.1.2 in manifest.yaml - [`3f1899a`](https://github.com/langgenius/dify-plugin-sdks/commit/3f1899a1dd29422be71b2d216aaf07f45a5db6c6) feat(session): session context and tool backwards invocation credential support - [`d846ab2`](https://github.com/langgenius/dify-plugin-sdks/commit/d846ab269980a845bd52ed4a43be00b28e6e7161) feat(oauth): session context and tool backwards invocation credential support - [`de69aca`](https://github.com/langgenius/dify-plugin-sdks/commit/de69aca40bd863dc2260eef552864fd24c5e9c79) Merge branch 'main' into feat/plugin-oauth ### 📊 Changes **101 files changed** (+3313 additions, -544 deletions) <details> <summary>View changed files</summary> ➕ `.gitignore` (+12 -0) 📝 `README.md` (+3 -2) 📝 `python/dify_plugin/config/config.py` (+2 -3) 📝 `python/dify_plugin/config/integration_config.py` (+1 -1) 📝 `python/dify_plugin/core/documentation/schema_doc.py` (+7 -7) 📝 `python/dify_plugin/core/entities/plugin/io.py` (+13 -10) 📝 `python/dify_plugin/core/entities/plugin/request.py` (+23 -9) 📝 `python/dify_plugin/core/entities/plugin/setup.py` (+23 -26) 📝 `python/dify_plugin/core/plugin_executor.py` (+22 -7) 📝 `python/dify_plugin/core/runtime.py` (+55 -17) 📝 `python/dify_plugin/core/server/__base/filter_reader.py` (+4 -4) 📝 `python/dify_plugin/core/server/__base/response_writer.py` (+6 -7) 📝 `python/dify_plugin/core/server/__base/writer_entities.py` (+2 -3) 📝 `python/dify_plugin/core/server/io_server.py` (+13 -10) 📝 `python/dify_plugin/core/server/router.py` (+2 -2) 📝 `python/dify_plugin/core/server/serverless/request_reader.py` (+1 -0) 📝 `python/dify_plugin/core/server/stdio/request_reader.py` (+1 -0) 📝 `python/dify_plugin/core/server/tcp/request_reader.py` (+3 -2) 📝 `python/dify_plugin/entities/__init__.py` (+3 -5) 📝 `python/dify_plugin/entities/agent.py` (+14 -16) _...and 80 more files_ </details> ### 📄 Description 🚀 **What’s New in v0.4.2?** 🚀 Welcome to version 0.4.2! This release focuses on OAuth integration, enhanced message handling, and general codebase improvements. Here’s a quick rundown: 🔑 **OAuth Implementation** * **OAuth Support:** OAuth has been implemented to improve authentication, enabling more secure and seamless connections with third-party services. * **OAuth Credentials Enhancement:** `credential_id` and `credential_type` have been added to tool parameters, allowing for more flexible configuration options. 🛠️ **Message Handling and Improvements** * **Invoke Message Refactor:** Message processing has been refactored with the new `InvokeMessage` feature for improved efficiency and scalability. * **Session Context and Backwards Invocation Support:** Session contexts and backwards invocation credentials are now supported, enabling deeper integrations and smoother tool communication. 📦 **Codebase Updates** * **Ruff Fixes Applied:** Code quality and consistency improved by applying Ruff fixes. * **Housekeeping:** Added `.gitignore` to exclude unnecessary files like IDE configs and secret keys, keeping the repo clean. * **README Updates:** Documentation now covers the new OAuth features for easier onboarding and reference. **Version 0.4.2** enhances integration capabilities with OAuth and fine-tunes internal processes — all designed to make your development experience smoother. Happy coding! 🎉 --- <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-15 21:16:13 -05:00
yindo closed this issue 2026-02-15 21:16:13 -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-sdks#205