Hi All,
I am using the JAX-RS REST service on a GlassFIsh server (JDK6 application). I secured my REST application with @RolesAllowed() annotations. I have a Dojo web client that need access to the REST resources. I am using FORM authentication on the REST server but happy to change it if there is a better way. When I access my resources directly (not from Dojo) I am redirected to the login.jsp page and everything works fine. After login the resource is displayed as xml as expected.
my application needs to display the dtata in dojo grid or tree. I intend to access it using the dojo rest store.
My question is what is the best way to do user login and display the current user logged in from Dojo using the same server FORM auth? I want to have a user login dialog displayed if a secured resource is accessed. After a successful login the application just work (display the data grid) if login failed display the dialog with error or similar feedback to user.
Many thanks in advance.
Gadi.