N
N
nuclear_kote2016-09-29 17:07:36
Java
nuclear_kote, 2016-09-29 17:07:36

How normal is it to use a Servlet for Angular Authorization?

public class LoginServlet extends HttpServlet {

    @Override
    protected void doPost(HttpServletRequest request, HttpServletResponse response)
            throws ServletException, IOException {
        doGet(request, response);
    }

    @Override
    protected void doGet(HttpServletRequest request, HttpServletResponse response)
            throws ServletException, IOException {
        request.login(....);
    }

}

Something like this

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Eugene Ray, 2016-10-06
@nuclear_kote

If something is serious, then so-so. Better Spring Security + JWT

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question