Accessing data from MongoDB Atlas

Hi. MongoDB Atlas seems to be a convenient data storage option for JSON data to be used with Composer Pro. But is it possible to access data from MongoDB Atlas requiring HTTP Digest authentication? Is that supported by AppGyver related to external data sources? Have you tested this data storage by any chance? Thanks.

Looking at e.g. https://stackoverflow.com/questions/48545933/is-it-possible-to-use-digest-auth-with-fetch-in-react-native it seems that some additional native functionality is required to enable Digest Auth support. I made a tracker ticket to follow at https://tracker.appgyver.com/feature-requests/p/http-digest-auth-support

That said, you would want to keep your MongoDB Atlas secrets in a backend and e.g. only provide a short-lived auth token to authenticated users to access that backend. Thus, even if Digest Auth was possible directly from the mobile/web client app, it would not be a secure architecture, as someone getting access to the app binary would be able to scrape the secrets and start accessing your API outside the app.

So for now, it looks like the way to access MongoDB Atlas would be to create a simple proxy server that works with e.g. a Authorization header token between the client and the proxy server, and then Digest Auth between the proxy server and MongoDB Atlas.

As we work on our cloud offering throughout early 2020, we’ll be sure to take this use case into account and perhaps even build a one-click integration to MongoDB Atlas!