Closed younes-io closed 2 years ago
Thanks for reporting this @younes-io.
What version of the zeebe-node
library is in the package.json
of your project?
Hello @jwulf ,
In the package.json
, I have this "zeebe-node": "^0.23.2"
We've already discussed the issue of fetching token via an insecure, http connection: https://forum.camunda.io/t/an-authentication-issue-in-zeebe-modeler-oauth/2164/6?u=barmac
However, when I do
useTLS: false
, it does work ! I have another endpoint in HTTPS, and it only works whenuseTLS
is set tofalse
, otherwise, I get the error above!
This might be related to https://github.com/grpc/grpc/issues/9538.
const zbc = new ZBClient('0.0.0.0:50051', { oAuth: { url: 'http://127.0.0.1:4000/token', audience: '', clientId: '', clientSecret: '****', cacheOnDisk: true, }, useTLS: true, });
I would expect this one to fail, since it is using http
. Does this server have TLS enabled?
If it does not, then useTLS: false
is the correct setting.
For your endpoint that uses HTTPS (TLS-enabled), you say that it works when you set useTLS: false
and fails when you set useTLS: true
- is that correct?
@jwulf I think this can be closed
Describe the Bug
I have written and run this snippet as Zeebe Modeler uses
zeebe-node
under the hood:Here are the logs:
However, when I do
useTLS: false
, it does work ! I have another endpoint in HTTPS, and it only works whenuseTLS
is set tofalse
, otherwise, I get the error above!Steps to Reproduce
C:\Users\yourUser\AppData\Roaming\zeebe-modeler\Zeebe Modeler\logs\log.log
~/Library/Logs/Zeebe Modeler/log.log
Expected Behavior
The same behavior as when the authentication method is set to
None
.Environment