Hi all,
We are trying to use the Content Server REST API to view and upload documents, but have not been able to do this without enabling anonymous authentication in IIS. Unfortunately, single sign-on stops working when anonymous authentication is enabled.
We followed this link: https://knowledge.opentext.com/knowledge/cs.dll/kcs/kbarticle/view/KB9770935/customer/article.html thinking it would let us use the REST API without enabling anonymous authentication, but that did not work. The following is what we tried.
- Call POST http://[OTDS server]:8080/otdsws/rest/authentication/credentials with credentials in the JSON body. Get the OTDS ticket from the response body.
- Call GET http://[OTCS server]/otcs/cs.exe/api/v1/auth with OTDSTICKET in the header. Get OTCS ticket from response header
- Call GET http://[OTCS server]/otcs/cs.exe/api/v1/note/[nodeid] with OTCSTICKET in the header. The response body has node details.
This whole process works with anonymous authentication enabled, but step 2 fails with a 401 error when anonymous authentication is disabled. Does anyone know of a way we can use the OTCS REST API without breaking our SSO?
Thanks,
Oliver