How does Mongolab REST API authenticate

后端 未结 3 728
春和景丽
春和景丽 2021-02-07 23:52

The REST API for Mongolab is cool. I can use that for analytics in my website directly using the following javascript, provided on Mongolab\'s support page. Only if I can unders

3条回答
  •  再見小時候
    2021-02-08 00:42

    You have an API key for doing http request to your DB using their REST API. For example, if a user wants to log in I make a request with a GET method like this:

    https://api.mongolab.com/api/1/databases/name_db/collections/users/put_your_params_like_username_and_pw?apiKey=xxxxxxxxx

    And then you analyze the response to that request. It is not the most secure DB in the world but it is getting better.

    If you want more info I talk about that in my blog: http://lolapriego.com/blog/?p=16

提交回复
热议问题