mirror of
https://github.com/langgenius/dify-plugins.git
synced 2026-07-22 01:55:36 -04:00
[Bug Report]: No username for Confluence plugin when self-hosted #118
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @drrock77 on GitHub (Jun 24, 2025).
Originally assigned to: @jingfelix on GitHub.
I'm running dify self-hosted and am trying to add my confluence content. I installed the plugin. I tried to auth with a known working token and it failed. I noticed that there is not an input for the username as in the screenshot and my other confluence integrations require a username.

@drrock77 commented on GitHub (Jun 24, 2025):
auth.py should look like tihs:
from typing import Any
from atlassian.confluence import Confluence
def auth(credential: dict[str, Any]) -> Confluence:
"""
Authenticate to Confluence using environment variables.
"""
confluence = Confluence(
url=credential.get("url"),
username=credential.get("username"),
password=credential.get("token"),
cloud=True
)
return confluence
You also need to add the username input field to the confluence.yaml file.
credentials_for_provider:
url:
type: text-input
required: true
label:
en_US: Confluence URL
zh_Hans: Confluence URL
placeholder:
en_US: "https://your-domain.atlassian.net"
zh_Hans: "https://your-domain.atlassian.net"
help:
en_US: The base URL of your Confluence instance.
username:
type: text-input
required: true
label:
en_US: Confluence Username
zh_Hans: Confluence Username
token:
type: secret-input
required: true
label:
en_US: Access Token
zh_Hans: 访问令牌
placeholder:
en_US: Please input your Confluence access token with auth method, like "Basic "
zh_Hans: 请输入您的带有认证方法的 Confluence 访问令牌,如"Basic "
help:
en_US: Create an API token from your Atlassian account settings.
zh_Hans: 从您的 Atlassian 帐户设置创建 API 令牌。
url: https://id.atlassian.com/manage-profile/security/api-tokens