langgenius / dify

Dify is an open-source LLM app development platform. Dify's intuitive interface combines AI workflow, RAG pipeline, agent capabilities, model management, observability features and more, letting you quickly go from prototype to production.
https://dify.ai
Other
45.12k stars 6.33k forks source link

[Feature Request] Dynamic Authentication Parameter Support in HTTP Interface of Custom Tools #6764

Open verigle opened 1 month ago

verigle commented 1 month ago

Self Checks

1. Is this request related to a challenge you're experiencing? Tell me about your story.

Summary: I would like to request the addition of a feature that allows the authentication parameters in the HTTP interface to be dynamically set through external variables, rather than being restricted to a single, fixed value.

Current Behavior: Currently, the HTTP interface of custom tool for authentication only supports a fixed value for the authentication parameters, which limits the flexibility and adaptability of the system when dealing with different environments or use cases.

![Uploading image.png…](only support static parameter for auth)

Desired Behavior: The ability to pass authentication parameters as external variables would greatly enhance the flexibility of the system. This would allow users to configure the authentication parameters according to their specific needs without having to hardcode values into the system.

Use Case: In our current setup, we often need to switch between different authentication mechanisms or tokens based on the environment (development, staging, production) or other conditions. Having the ability to set these parameters dynamically would streamline our workflow and reduce the risk of errors associated with manual updates.

Benefits:

Technical Details:

2. Additional context or comments

Additional Information:

Thank you for considering this feature request. I believe it would greatly benefit the user experience and the overall functionality of the system.

3. Can you help us with this feature?

crazywoola commented 1 month ago

Hello the image link is broken.

crazywoola commented 1 month ago

image. As you can see from above image. It supports using parameters to set it dynamically. @verigle