How to get OTCSTICKET using oAuth 2.0 Client's access_token?

Mahesh Pinnamaneni
edited December 5 in Extended ECM #1

Hi,

I am working on an integration with Content Server. I have setup an oAuth 2.0 client in OTDS and I am testing the connection from the Postman so its easier to troubleshoot issues. I am getting the access_token when I call the oAuth 2.0 Authorization flow from the Postman. I am trying to see how I can use this access_token to get the OTCSTICKET so I can use it in for the subsequent OTCS REST API calls.

If we are getting the OTDSTICKET from OTDS REST API, then we exchange the ticket with the OTCS Resource (/ticketforresource) and then GET call to OTCS /auth api to get the OTCSTICKET. But I am not sure how that works with access_token.

Appreciate your thoughts.

Thank,

Mahesh

Tagged:

Answers

  • It worked by passing the access token as a bearer token set to Authorization header in the REST APIs. I always thought you need to pass OTCSTICKET in the header. This is a good find that we can also send Bearer token in the header.