JAAS and acess from android

落花浮王杯 提交于 2019-12-13 04:13:41

问题


Hi i have secured my server using JAAS and i have performed the web authentification , now i have to authenticate from mobile application using android app , how can we use the Rest web services after authentication , is JAAS support access from mobile app ? i have a ws that allow me to verify if the login and password are corect ; haw can i access this ws ? on the web app there is the container authentification so after doing this , i am allowed to use all my ws is there any thing like this on android ?


回答1:


it was solved by performing a ws that get authrization from the server and when i call a ws i usuly give it a query param wich is the login and pass , so the server verify if the user is authorised to do the operation or not , using JAAS i have the annotation @rolesallawed on the top of each method .



来源:https://stackoverflow.com/questions/10349455/jaas-and-acess-from-android

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