Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Why doesn't my API token work?

JConstantine September 28, 2020

I want to connect my Cloud version of Confluence (free license)  to the Jira Service Desk (Server version), so I need to generate the API token. I've generated it, used it with curl but when I'm trying to save it in the Confluence Cloud Integration I get this error:

Your Confluence user and token credentials have been rejected by Confluence. If you need help with generating API tokens, see https://confluence.atlassian.com/cloud/api-tokens-938839638.html

What might be the problem here?

 

 

2 answers

2 votes
Niranjan
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 28, 2020

@JConstantine - Not sure, but may be it is  a cloud-server stuff. The doc says that

"API tokens can be used with the Jira Cloud and Confluence Cloud REST APIs." 

JConstantine September 28, 2020

@NiranjanThis is obviously a cloud-server stuff, but I can't figure out what it is :(

Niranjan
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 28, 2020

@JConstantine - As per the KB it says API token works only for Cloud-Cloud, but you are trying Cloud version of Confluence (free license)  to the Jira Service Desk (Server version)

JConstantine September 28, 2020

@Niranjan  Well, now I'm confused. I've been told that it's possible to do that. Check this out: How can I integrate the Cloud version of Confluence into my Server version of Jira Service Desk? 
So there's no way I can use a Cloud version of Confluence with the Server version of JSD? What I need is to able to use the Confluence knowledge base inside the Customer Portal in JSD.

Niranjan
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 28, 2020

@JConstantine - You may need to use application links to link cloud and server products

https://confluence.atlassian.com/cloud/link-to-server-products-from-cloud-744721656.html

JConstantine September 28, 2020

@NiranjanI've read that as well, but I can't create the reciprocal link.
ReciprocalLink.png

Niranjan
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 28, 2020

There could be different reasons like network/firewall restrictions/outbound stuff

https://confluence.atlassian.com/jirakb/unable-to-create-reciprocal-link-when-creating-application-link-855541357.html

JConstantine September 29, 2020

@NiranjanOn this page it is said that

Platform Notice: Server and Data Center Only - This article only applies to Atlassian products on the server and data center platforms.

But I'm using a cloud version of Confluence for which I can't create the reciprocal link.

0 votes
Bartosz Ornatowski
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
September 28, 2020

Hi @JConstantine

 

The integration of JSD Server with Confluence Cloud has been added to JSD Server in 4.12.0 release. https://confluence.atlassian.com/servicedesk/jira-service-desk-4-12-x-release-notes-1019396559.html#JiraServiceDesk4.12.xreleasenotes-confluence and it should be working with the limitations based on the type of Confluence Cloud license you are using.

The response you have received means that Confluence has responded with the equivalent of "Wrong username or password" kind of response. That also means that JSD was successful in reaching Confluence Cloud and received a response, so on the networking level, everything seems fine.

Can you please verify that you can get a valid response from Confluence when trying to use the token manually? You can use a tool like postman for that or a simple command like 

curl -v https://mysite.atlassian.net --user me@example.com:my-api-token

One of the most common problems of this sort is a typo in the user email, copying the API token with additional characters or using a username instead of user email for the API token authorization.

 

Let me know if that doesn't help you solve your issue.

Cheers,
Bart 

JConstantine September 29, 2020

I still can't save it in the Confluence Cloud Integration.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
TAGS
AUG Leaders

Atlassian Community Events