I am writing to report an issue I have encountered regarding the subdomain parameter required for the Jira toolkit. Despite following the documentation and passing the subdomain when creating the authentication configuration, the expected behavior is not occurring.
For reference, here is the relevant portion of my implementation:
credentials = {
"client_id": client_id,
"client_secret": client_secret,
"oauth_redirect_uri": 'https://auth.dynaris.ai/redirect'
}
# Add subdomain to credentials for Jira
if toolkit.lower() == "jira":
if not subdomain:
raise ValueError("Subdomain is required for Jira")
print(f"Adding subdomain to credentials for Jira: {subdomain}")
credentials["subdomain"] = subdomain
print(credentials)
options = {
"type": "use_custom_auth",
"auth_scheme": "OAUTH2",
"name": f"{toolkit}-{user_id}",
"credentials": credentials
}
print(options)
auth_config = client.auth_configs.create(toolkit=toolkit, options=options)
db.insert_row_mcp_manager(
(user_id, f"{toolkit}-{user_id}", auth_config.id, None, toolkit, None, None)
)
db.disconnect()
# Build URL with subdomain for Jira
url = f"https://auth.dynaris.ai/authorize/{toolkit}?user_id={user_id}&auth_config_id={auth_config.id}"
As you can see, the subdomain is explicitly added to the credentials object before creating the authentication configuration. However, the Jira integration still does not recognize it as expected. I have followed this documentation for reference:https://docs.composio.dev/toolkits/jira#authentication-details
https://cdn.discordapp.com/attachments/1423233184610652293/1423233185503772804/Screenshot_2025-10-02_111800.png?ex=68df90b1&is=68de3f31&hm=90aa5c5b75fb42b4df926efa312d8a076754beb13e81e279f1cb95864d273e10&