HTML5 / Javascript validation using JAX-RS interface

I am implementing a backend and web interface with JBoss AS 7.1 and JSF. I want to implement a mobile client with JQuery Mobile (HTML5) that calls some REST interfaces created using Jax-RS. All interface methods must be bound to the user who must be registered. How can I assure that the user is authenticated?

+4
source share
1 answer

The easiest way is to use the authentication mechanisms provided by the container, and basic authentication is the easiest. Here is an example showing how to do this in your application. However, the main caveat with this approach is that your credentials pass through the network in clear text. Because of this, you DEFINITELY want to implement SSL on your application server to encrypt data on the go.

-1
source

Source: https://habr.com/ru/post/1481402/


All Articles