[Bug Report]: No username for Confluence plugin when self-hosted #118

Open
opened 2026-02-22 17:19:18 -05:00 by yindo · 1 comment
Owner

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.
Image

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. ![Image](https://github.com/user-attachments/assets/3079e734-54ed-4181-a24b-91f7df3d9713)
yindo added the enhancement label 2026-02-22 17:19:18 -05:00
Author
Owner

@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

@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 <token>" zh_Hans: 请输入您的带有认证方法的 Confluence 访问令牌,如"Basic <token>" 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
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify-plugins#118