You are designing an authentication system for a new API. The API will be accessed by both web clients and other services. Which authentication strategy would be most suitable to ensure security and scalability?
- OAuth 2.0
- JWT
- Basic Authentication
- API Keys
OAuth 2.0 is a widely adopted authentication strategy for securing APIs accessed by various clients. It provides security features such as token-based authentication, authorization, and is suitable for both web clients and services. JWT is a token format and not an authentication strategy on its own. Basic Authentication and API Keys have limitations in terms of security and scalability.
Loading...
Related Quiz
- Which of the following is an example of an Object Document Mapper (ODM) for MongoDB in Node.js?
- You are developing a user management system and need to design routes for CRUD operations. How would you structure the routes to follow RESTful principles in Express.js?
- When utilizing closures, it is crucial to manage memory effectively to avoid ________.
- In a system following eventual consistency, what implications does it have on Read operations after a Write operation?
- You are developing an Express.js application that needs to validate user input on a specific route. How would you implement middleware to efficiently validate input for that route?