Hello Experts,
I couldn't find a post on getting OTCS ticket from OTDS in SSO environment without providing password, if there is such, I apologize for duplication. Now back to question:
We have SSO setup with Azure AD, when users logs in to CS, call is redirected to OTDS, which it then redirects to Azure. Our environment is setup in a such way that Azure doesn't prompt for credentials (it takes logged-in user as the user name and our local AD authenticates that user without prompting for a password), once token is sent to OTDS, OTDS i believe then creates OTCS ticket and redirect user back to CS.
We are trying to create a script in PowerShell to download a file from CS, in order to do that, we need to authenticate it first. Now question is how to do it? All the REST APIs that I have came across requires username and password. We are ideally looking for a REST API call which grabs the logged-in user as a username and doesn't need the password (Just FYI I have tried providing username and password as well but didn't work - my understanding is that REST call only works for CS internal users). I then came across following OTDS REST API:
https://developer.opentext.com/awd/resources/apis/otds-16#!/authentication/authenticate_get_1
This REST API returns OTCSTicket if you are already logged into the client, in our case, we are logged-in yet!
Any folks have tried this scenario before? sounds like a very common scenario; a user needs to download a file from CS in SSO envrionment.
I know i can impersonate user too but that would be my last resort plus i am not comfortable of having admin password within the script (https://knowledge.opentext.com/knowledge/llisapi.dll/kcs/kbarticle/view/KB8295770)
Any suggestions, hints would be greatly appreciated.
Thanks,
Aftab