Rails?
Let's say before the request being sent to the specified controller, I want the request to be handled by a SessionsController which will authenticate and authorize whether or not the user is allowed to serve the data.
weren't you the guy who was asking "beginner" questions a few days ago?
The point is that I'm studying a code base which is honestly a mess. Within the codebase, inside every action, the code is called for authentication and authorization. And that makes me uncomfortable. So I thought is there a way using which every request can go through the sessions controller and the sessions controller will decide if the user is allowed to access the resource or not.
you know a piece of technology is dying when someone asks a question about it in off-topic group.
Обсуждают сегодня