I am trying to call one of the Magento REST API (e.g. api) products from a NodeJS application using a normal HTTP request. I know that the Magento API requires OAuth to authenticate the user / application, and this is where I got a little lost.
When using Magento or any OAuth application, the end user who uses the application must click "Authorize" for this application to receive a token, and then the application can directly communicate with the Mangento APIs.
In my case, we are talking about two Magento and NodeJS servers that will talk to each other. Thus, the user does not need to sort the "Click" authorization button and check the auth request.
The goal of what I'm trying to achieve is to capture product data from Magento, save it to the database, and then make some changes, after which make it available through the NodeJS REST API. (This is a strict requirement, and I cannot change it).
My question is: do I need to write Magento REST user interfaces that do not require OAuth, or perhaps require basic basic HTTP authentication (username / password). Or is there a way to use OAuth and authenticate my Node application directly?
I hope my question is clear if you do not tell me, and I will try to fix it. Thank!
source
share