Is the Nx Cloud up? Visit our Status Page for the current health and performance of the Nx Cloud.

Status Page

Cloud Auth Bearer token getting Auth_MissingCredentials on database backup endpoint even for Owner

Comments

1 comment

  • Ichiro
    • Network Optix team

    Hi, 

    Based on what you shared, this doesn't look like a bug. Let me walk you through what's actually happening.

    We assume when you connect through the cloud relay, your requests go to:

    https://{cloud_system_id}.relay.vmsproxy.com

     

    And the Auth_MissingCredentials is self-explanatory, potentially your auth token is not reaching the server. The most common reason: your implementation may be missing handling HTTP redirects. 

    When the server redirects your request, your token needs to be included in the redirected request too, not just the first one. Most HTTP clients strip headers (including Authorization) when they follow a redirect, so you have to handle this manually. (or explictly)

     

    So, 

    1. Please refer to this article first: https://support.networkoptix.com/hc/en-us/articles/34032455073431-Handling-HTTP-HTTPS-Request-Redirection
    2. Then may be take a look at this working Python example on GitHub: https://github.com/networkoptix/nx_open_integrations/blob/488b5a6ec4b132467ff7d6c09880849a571227d3/python/examples/common/server_api.py#L31

    It shows exactly how to attach your token to redirected requests.

     

    To answer your other questions directly

    • There is no known limitation preventing Cloud OAuth owners from running database backups via the REST API over the relay. 
    • The Desktop Client does not use any special or different tokens. There's no hidden auth mechanism, it uses the same token you have access to.
    • There is no missing confirmation step or special header beyond handling the redirect correctly.

    Maybe fix the redirect handling first and test again. That should resolve it.

    0

Please sign in to leave a comment.