Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

REST API Authentication with ActiveDirectory-Plugin

nicolamarangoni
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
December 2, 2020

Hello,

I have an application that publish pages to confluence on premise using the REAT-API.

It was possible for example to publish using curl:

curl -u pha0s02p:<password> -X GET \
"https://confluence.my-company.com/rest/api/content?title=MyPage&spaceKey=%7EMySpace&expand=body.storage%2Cversion"

Now the authentication works using ActiveDirectory. During Login, we are redirected to:

https://login.microsoftonline.com/3825a6f3-24cb-47d4-8aa2-35d3e5891324/saml2

Since then it is not possible anymore to interact with confluence using the REST-API because I get the error:

Basic Authentication Failure - Reason : AUTHENTICATED_FAILED

Basic authentication has been disabled because of active directory, I suppose. Which alternatives are available to login again using REST?

Best regards,

Nicola

1 answer

0 votes
Dominic Lagger
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.
December 2, 2020

Hi @nicolamarangoni 

I'm not an expert of AD, but I've got some knowhow in REST API.

A simple solution would be to create a local user on confluence. 

This user should not be redirected to the AD. 

Can you verify or deny this? 

Regards, Dominic

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events