...
/Challenge: Enforcing Role-Based Authorization
Challenge: Enforcing Role-Based Authorization
Test yourself by enforcing role-based authorization on web API endpoints.
We'll cover the following...
Overview
In this challenge, you have a mock application that represents the back-end API of a social network. In its initial state, all endpoints are accessible without any authentication or authorization, which is an obvious security risk. You need to enforce authentication and authorization based on the specified requirements.
Requirements
In the playground below, you have two controller classes:
ContentController
: It contains the endpoints that allow users to view and post content on the ...