Authentication error for some sub-accounts of a cloud account
AnsweredHello support,
We have a cloud account and are trying to get data from the NX API. We are able to follow the authentication process for cloud accounts here https://meta.nxvms.com/docs/developers/knowledgebase/278-how-does-authentication-work and it works properly for other accounts. Specifically, we get the access_token at cdb/oauth2/token then use that token along with the Digest authentication to make calls to the API. For our current account we are able to get an access token from https://nxvms.com/cdb/oauth2/token, but when trying to get data from either the Legacy API or the newer REST API v3 (/rest/v3/devices), we get a 401 response with a <HTML><HEAD><TITLE>Unauthorized</TITLE></HEAD><BODY><H1>401 Unauthorized -- WrongPassword</H1></BODY> as the content of the response. We are unsure as to why this is, because we are able to use the username and password to connect with the web client and the same authentication process works for other accounts as mentioned above.
Can you provide any insight as to what the issue might be?
Thank you
-
The permissions on this user is "owner" and as mentioned, we are able to connect to most of the accounts in their cloud account just not 7 specific ones and we can't figure out what may be different with those
0 -
Thanks for your question, but unfortunately there are limited information available.
For Cloud Account, it has to be authenticated in token, digest is not available for cloud account.
Also, not sure if you were using the cloud relay, i.e. https://{cloudSystemId}.relay.vmsproxy.com/{API}.
If this is the case, likely you need to handle the redirect (HTTP 307) and resend the authentication header.you may refer to this code sample and the article
Thanks.
0
Please sign in to leave a comment.
Comments
2 comments