Using Vonage APIs with MongoDB Atlas - Part 4
In this series, MongoDB Atlas is used to authenticate users and provide query access for an application built using various Vonage APIs. The administrative backend uses Atlas's user authentication system, which allows for secure management of users and multiple types of authentication. The system is configured through the Atlas web UI, where users can manage roles, permissions, and data access controls. A VueJS code example demonstrates how to use the MongoDB SDK to authenticate users and access the database directly from the front end. The application uses a Database Store to hold a connection to the MongoDB cluster and uses the logged-in user's credentials to perform data lookups. The Atlas App configuration includes rules-based data access controls, which can be used to restrict what documents are returned based on the authenticated user's role or permissions. This setup allows for a secure and efficient way to manage user authentication and query access in an application built with MongoDB Atlas and Vonage APIs.
Company
Vonage
Date published
May 16, 2023
Author(s)
Chris Tankersley
Word count
3010
Language
English
Hacker News points
None found.