Accessing API When OTCS is Using Single Sign On

Options

Hello,

I'm looking to utilize the OTCS API; however, we are using OAuth 2.0 in production. In the development server, which uses basic authentication, I was able to pass the username and password to the api/v1/auth end point and receive an OTCS ticket that I can then pass to all future API requests. No issues there.

How can I get an OTCS ticket when using OAuth 2.0? OTCS is registered as an app in the azure environment and I am able to pass the client_id, client_secret, scope, and grant_type to the https://login.microsoftonline.com/{tenant}/oauth2/v2.0/token to receive a bearer token. I'm not sure how to pass this bearer token to OTCS in postman. It doesn't appear the api/v1/auth endpoint can accept the bearer token. I may be on the wrong track completely...

I am very new to all this so please bear with me - I may have some of the terminology confused. Any help you could provide would be greatly appreciated.

Tagged:

Comments