You're designing a RESTful API for a social media platform. How would you handle authentication and authorization for accessing user-specific data?
- Implement OAuth 2.0
- Include user credentials in the request headers
- Use API keys for authentication
- Utilize basic authentication
When designing a RESTful API for a social media platform, implementing OAuth 2.0 is a recommended approach. It provides a secure and standardized way to handle authentication and authorization, allowing access to user-specific data with proper permissions.
Loading...
Related Quiz
- In database management, what is cardinality, and how does it impact query optimization?
- Which of the following is NOT a benefit of using Infrastructure as Code?
- What feature of collaboration tools allows multiple developers to work on the same codebase simultaneously without interfering with each other's changes?
- In a large-scale software project, how would you apply the SOLID principles to ensure maintainability and scalability?
- The _______ model emphasizes the continuous integration of software development and operations processes.