-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SSO authentication for private WebApp #3074
Comments
Hey @phamduyphuong251, great to see you diving into another challenge with Dify! Let's tackle this SSO authentication together. To integrate SSO authentication in your private WebApp, allowing the chatbot to sign in using the user's credentials after they've logged into the WebApp, you would typically follow these steps:
Here's a hypothetical example of how you might modify the API call to include SSO authentication, assuming the use of a bearer token obtained after SSO authentication: curl --location --request POST 'https://api.dify.ai/v1/chat-messages' \
--header 'Authorization: Bearer YOUR-SSO-SESSION-TOKEN' \
--header 'Content-Type: application/json' \
--data-raw '{
"inputs": {},
"query": "eh",
"response_mode": "streaming",
"conversation_id": "1c7e55fb-1ba2-4e10-81b5-30addcea2276"
"user": "abc-123"
}' In this example, Regarding your question about contributing to Dify, I'm afraid I don't have the necessary information to guide you on this. You might want to reach out to the Dify development team or community for more information on how you can contribute. As for your questions about the SSO protocols supported by Dify and how Dify handles session management and token validation for authenticated users, I wasn't able to find specific information within the repository. However, these are important considerations and I recommend reaching out to the Dify team for more information. I hope this helps! If you have any more questions, feel free to ask. Sources
|
I have one question: I want to embed a chatbot in my Web app by iframe. Is it possible for a chatbot to detect the user? |
Hello there, the SSO function requires business license. Please contact business@dify.ai |
Self Checks
1. Is this request related to a challenge you're experiencing?
Hi, I want to ask about SSO authentication for my private WebApp
2. Describe the feature you'd like to see
Well, the chatbot needs to sign in because of private documentation. I want my users when sign in my WebApp, the Chatbot will have their information to log it.
3. How will this feature improve your workflow or experience?
My boss need it :(
4. Additional context or comments
No response
5. Can you help us with this feature?
The text was updated successfully, but these errors were encountered: