I set the adminAuth
And also set the httpNodeAuth
But when I used the admin API [/auth/token] to produce an access token and the pass to the [http in] node, it told me that Unauthorized.
And I used the postman to call the API[http in], I also set the header :Authorization, but it didn't work, still said Unauthorized.
IF I used the basic auth, I can call the api from postman:
adminAuth security only applies to the editor and admin apis of Node-RED. It does not apply to the routes created in the flow, such as the HTTP In nodes.
The only built-in security we provide for the HTTP In nodes is the
httpNodeAuth basic authentication option.
I will use basic auth instead
Or use external auth if you want more. Lots of people have written about using something like NGINX as a reverse proxy and configuring the auth there since there are lots of tools and articles on doing that.
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.