lightyear
Jul 7th, 2012, 08:14 AM
Hi Guys,
I created a rest webservice using spring, then later I added a spring authentication module. I would say it is working great as each time I access the REST URL my request ib being intercepted prompting me for username and password.
Now, I would like to consume the REST webservice in android (authentication spring enabled) using the Spring RestTemplate. My question now is how do I consume the webservice in android given that it has authentication security?
Could someone help me guys have a code snippet on how to pass the username and password in RestTemplate, or could anyone give me a way to do it.
Guys, I also posted same question in security forum as I am not sure where the best section to post this.
Thank you
Lightyear
I created a rest webservice using spring, then later I added a spring authentication module. I would say it is working great as each time I access the REST URL my request ib being intercepted prompting me for username and password.
Now, I would like to consume the REST webservice in android (authentication spring enabled) using the Spring RestTemplate. My question now is how do I consume the webservice in android given that it has authentication security?
Could someone help me guys have a code snippet on how to pass the username and password in RestTemplate, or could anyone give me a way to do it.
Guys, I also posted same question in security forum as I am not sure where the best section to post this.
Thank you
Lightyear