Authentication in a client application for REST services

☆樱花仙子☆ 提交于 2019-12-11 15:55:46

问题


Firstly, I'm going to explain my objective: I developed some REST services using Jersey, that were automatically generated from my MySQL DataBase. In that DataBase I have a Login table, that have the information of who can access the REST services. With this Login table I've allready implemented Basic-Authentication for my Jersey REST services, and that's working. When I go to the REST services mainpage, I have to put the correct login and password, and then I can access all information of all services.

Now, I'm implementing Authentication for a Client application that can consume those services. I'm thinking of use HttpBasicAuthFilter or HttpURLConnection, but I want to know if I need to implement Authentication in all Java classes. The objective is to have for example a mobile application, that just ask for the login and the password in the beggining, and not in every steps, just like I did with Basic-Authentication.

Thanks

来源:https://stackoverflow.com/questions/15358477/authentication-in-a-client-application-for-rest-services

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!