Answer the question
In order to leave comments, you need to log in
How to separate authorization from business logic?
Hello, I am facing the following issue. I want to make a test system so that teachers can create tests, and students can solve them. I'm trying to implement this as a separate library, so that at the output all work with the service happens through one interface. For all this, one database is created, and it turns out that in the same database, in addition to user identifiers, we must store their roles. This means that we must implement authentication inside the service, which will most likely lead to data duplication, when used, for example, with asp .net. Please tell me how to organize it beautifully.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question