Good evening, trying to implement a web service of rest which should provide work movie posters.
Task rest service to give all the movies, delete, change the description of the film.
Sekyuriti - must have two roles admin and user, delete, and change description may only admin. To do the authentication with jwt.
Found articles about this spring sekyuriti + rest + jwt but at the moment I just started to learn sprin...
As I'm trying to do, WildFly server + mongoDB + REST jersey + servlets, and can't understand how I screwed jwt, namely to understand the logic during untypical and after it!!
With the rest some how figured out, but with no sekyuriti, the Issue of which principle of operation between a client and a web server at auntefication jwt?
For example, the user entered login and password pressed the form to enter, it flew to the specified url there is a server, the user token and where it is stored in the browser???? in cookies or where?
What is the principle of operation of the user and the server auntefication and what after auntefication?
The Council, an explanation of an example is welcomed.Thank you.