currently I am creating a webbackend with Django, where the administration is done with KeyCloak.
With KeyCloak I can assign users with certain role (e.g. customers, subscription customers).
The customer and subscription customer have different permissions. (E.g. like in the film industry, where only the subscription customers can watch all movies and the normal customer can not) There's an endpoint to every movie.
How can I make this endpoint inaccessible with missing permissions?