It is necessary to make an authorization by name. On the client side, the easiest thing to start is to return the page on which, through the prompt, let the user enter But how to organize communication in the application. Write a separate authorization controller?