For Confluence Server, does anyone know how to use REST API when there is SAML SSO? Shibboleth is the IdP.
This works for spaces that allow anonymous view access.
curl -H "Authorization: Bearer <my personal access token>" -X GET "https://xxxx/rest/api/space/spacename?expand=description"
With restricted spaces, the error is:
{"statusCode":404,"data":{"authorized":false,"valid":true,"allowedInReadOnlyMode":true,"errors":[],"successful":false},"message":"No space found with key : spacename","reason":"Not Found"}
Any help is appreciated. Thank you.