Using OSMT APIs from an external application written in NodeJS/Python/ect... #150
-
|
Hi, We are currently looking into how we would go about using OSMT APIs from an external application written in NodeJS/Python/ect. We would like to perform the following in our external application written in NodeJS/React through the use of the OSMT APIs:
I assume the above APIs are behind authentication, so we would have to pass an Authorization token with every request we make from our external application to the OSMT instance? What would be the best way to go about integrating something like this? Thank you for taking the time to look into this. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
|
Hello Ionatan, Thanks for sharing your question here. From our email thread, I was headed one way with some suggestions. I think I assumed your use case was more curl for batch importing. The Authorization header and Bearer token from OSMT will work when added to curl commands, and you could lift that from a browser request. But I see from your question here that you have a separate application you want to integrate. I'm reading your question as "how to I authenticate to OSMT's API from a different client?" Please confirm that I'm pointed to what you are asking? I need one additional clarification before I can respond... Is your alternate client browser-based, or hitting OSMT's API from a server? Thank you... |
Beta Was this translation helpful? Give feedback.
-
|
Hi Ionatan, To build on the information that John's provided, in the past I've leveraged a client credentials flow for these types of service-to-service integrations. Okta has some fairly detailed instructions here and I suspect most IdPs will provide have similar functionality. Regards, Drey |
Beta Was this translation helpful? Give feedback.

Hello Ionatan,
Thanks for sharing your question here. From our email thread, I was headed one way with some suggestions. I think I assumed your use case was more curl for batch importing. The Authorization header and Bearer token from OSMT will work when added to curl commands, and you could lift that from a browser request. But I see from your question here that you have a separate application you want to integrate. I'm reading your question as "how to I authenticate to OSMT's API from a different client?" Please confirm that I'm pointed to what you are asking?
I need one additional clarification before I can respond... Is your alternate client browser-based, or hitting OSMT's API from a…