{"id":18398671,"url":"https://github.com/mongodb-developer/atlas-admin-api-digest-auth","last_synced_at":"2025-04-14T10:52:56.010Z","repository":{"id":98127658,"uuid":"481228253","full_name":"mongodb-developer/atlas-admin-api-digest-auth","owner":"mongodb-developer","description":"Demonstration of calling the MongoDB Atlas Administration API using digest authentication","archived":false,"fork":false,"pushed_at":"2024-06-18T22:51:55.000Z","size":109,"stargazers_count":4,"open_issues_count":1,"forks_count":1,"subscribers_count":6,"default_branch":"main","last_synced_at":"2025-03-28T00:06:40.117Z","etag":null,"topics":["atlas","digest-authentication","mongodb","mongodb-atlas"],"latest_commit_sha":null,"homepage":"https://www.mongodb.com/developer/how-to/nodejs-python-ruby-atlas-api/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mongodb-developer.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-04-13T13:30:04.000Z","updated_at":"2024-09-04T15:46:40.000Z","dependencies_parsed_at":"2024-12-24T11:23:30.961Z","dependency_job_id":"d217b3d5-fe3f-459c-9dce-38250e3b2945","html_url":"https://github.com/mongodb-developer/atlas-admin-api-digest-auth","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mongodb-developer%2Fatlas-admin-api-digest-auth","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mongodb-developer%2Fatlas-admin-api-digest-auth/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mongodb-developer%2Fatlas-admin-api-digest-auth/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mongodb-developer%2Fatlas-admin-api-digest-auth/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mongodb-developer","download_url":"https://codeload.github.com/mongodb-developer/atlas-admin-api-digest-auth/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248868807,"owners_count":21174755,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["atlas","digest-authentication","mongodb","mongodb-atlas"],"created_at":"2024-11-06T02:23:49.615Z","updated_at":"2025-04-14T10:52:56.005Z","avatar_url":"https://github.com/mongodb-developer.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MongoDB Atlas Administration API — Digest Authentication Demo\n\nThis repository demonstrates how to call the [MongoDB Atlas Administration API](https://www.mongodb.com/docs/atlas/api/) using digest authentication. You can read the accompanying article ['Calling the MongoDB Atlas Admin API - How to do it from Node, Python, and Ruby'](https://www.mongodb.com/developer/how-to/nodejs-python-ruby-atlas-api/) for more information.\n\n## Setup\n\nTo connect to the Atlas Administration API, you need to generate an [organization API key](https://www.mongodb.com/docs/atlas/configure-api-access/#std-label-create-org-api-key). Make sure you add your IP address in the API access list!\n\nThen, export the following environment variables, where `ATLAS_USER` is your _public key_ and `ATLAS_USER_KEY` is your _private key_.\n\n```bash\nexport ATLAS_USER=\u003cpublic_key\u003e\nexport ATLAS_USER_KEY=\u003cprivate_key\u003e\n```\n\n## Usage\n\nThe repository includes request examples for Python, Node.js and Ruby.\n\n### Python Example\n\nTo run the Python example, execute:\n\n```bash\ncd python\npip install -r requirements.txt\npython ./request.py\n```\n\n### Node.js Example\n\nTo run the Node.js example, execute:\n\n```bash\ncd node\nnpm install\nnode ./request.js\n```\n\n### Ruby Example\n\nTo run the Ruby example, execute:\n\n```bash\ncd ruby\nbundle install\nruby ./request.rb\n```\n\nIf you don't have Bundler, you can install the `httparty` gem manually:\n\n```bash\ncd ruby\ngem install httparty\nruby ./request.rb\n```\n\n## Tests\n\nThe repo includes a naive unit test for each of the examples. The tests execute the request and check the standard output for the expected success message.\n\n### Python Test\n\nTo run the Python test, execute:\n\n```bash\ncd python\npip install -r requirements.txt\npython -m unittest\n```\n\n### Node.js Test\n\nTo run the Node.js test, execute:\n\n```bash\ncd node\nnpm install\nnpm test\n```\n\n### Ruby Test\n\nTo run the Ruby test, execute:\n\n```bash\ncd ruby\nbundle install\nruby test_request.rb\n```\n\n## Disclaimer\n\nUse at your own risk; not a supported MongoDB product","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmongodb-developer%2Fatlas-admin-api-digest-auth","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmongodb-developer%2Fatlas-admin-api-digest-auth","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmongodb-developer%2Fatlas-admin-api-digest-auth/lists"}