Unable to Login via Sessions
AnsweredHi,
I had setup a NX Server on my local computer, and I am able to login via the NxWitness Desktop from my machine. However, I am trying to get myself logged in via the API /v1/login/sessions, and I am using Postman to do my tests. At the moment, I am getting a 401 Unauthorized Error. Can anyone tell me what I had done wrong in this aspect?
-
Hi Yongyan Foo,
From your request body, I'm guessing that you're trying to get the token by creating the session.
However, if you checked the API document, you should use the POST method instead of GET. It's expected that there's no authentication since the GET method won't check any request body.Thank you.
-
Hi Yongyan Foo,
Sorry to miss your quick update.
By default, the Nx server only accepts the secure connection (HTTPS). Please send the request with HTTPS protocol. Or adjust the security setting from System Administration > Security page under Nx server.Thanks.
Please sign in to leave a comment.
Comments
3 comments