In JAX-RS (or Jersey) REST service, I'm trying to make custom authentication for my users in database. Currently I have @GET annotated method which should interact with user asking for credentials just like it is done in Spring framework with authentication provider - no custom login form, just plain HTTP login with browser popup form.
Currently I can handle HTTP Basic Access Authentication provided in header, but I need to ask for credentials before accessing content interactively and then make token-based authentication on this base.
I have to keep the application light-weight but I don't know how can this "easy" task be done..
Aucun commentaire:
Enregistrer un commentaire