Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Mockup & CodeGen, iPhone & iPad
($9.99)

Make your own iPhone apps
and run them live!
(free)

Manu
($0.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 01-31-2010, 09:27 AM   #1 (permalink)
Registered Member
 
Join Date: Apr 2009
Posts: 2
Default Secure connection between iPhone application and web server?

Hi,

I am about to start to developing an iPhone application that should login and communicate information securely between my app and a web server.
I haven't done any development in this area before, so I have done some research and would be very thankful for any input on how to handle this in the best/easiest way.

Currently, the people developing the web server does not know/have a system of handling requests from the application I will develop, so they will most likely need to create something new.

Authentication:
From what I understand, using HTTP authentication is not safe at all, and the best approach would be to use HTTPS? What would be the difference in the iphone application if using HTTPS or HTTP? I suppose the server and the client would need a certificate somehow?

Regardless of what I choose, is this how it works?:
1. Create a NSURLConnection with the server, listen to the didReceiveAuthenticationChallenge callback and respond with the user/password
2. use the connection created to send any other information?

Communication with the webserver:
The application requires to send about 20 different request to the server and needs to act on the responses. Would SOAP or any other web service be a good way to handle this? I believe that SOAP is pretty much XML over HTTP, so in a application this should be as easy as creating a NSMutableURLRequest and then parse the response with an XMLParser?

Or is there another much better solution?

Thanks
occe is offline   Reply With Quote
Old 06-14-2010, 09:42 AM   #2 (permalink)
Registered Member
 
Join Date: Mar 2010
Posts: 13
Default secure conn. b/w iphone and webserver

Quote:
Originally Posted by occe View Post
Hi,

I am about to start to developing an iPhone application that should login and communicate information securely between my app and a web server.
I haven't done any development in this area before, so I have done some research and would be very thankful for any input on how to handle this in the best/easiest way.

Currently, the people developing the web server does not know/have a system of handling requests from the application I will develop, so they will most likely need to create something new.

Authentication:
From what I understand, using HTTP authentication is not safe at all, and the best approach would be to use HTTPS? What would be the difference in the iphone application if using HTTPS or HTTP? I suppose the server and the client would need a certificate somehow?

Regardless of what I choose, is this how it works?:
1. Create a NSURLConnection with the server, listen to the didReceiveAuthenticationChallenge callback and respond with the user/password
2. use the connection created to send any other information?

Communication with the webserver:
The application requires to send about 20 different request to the server and needs to act on the responses. Would SOAP or any other web service be a good way to handle this? I believe that SOAP is pretty much XML over HTTP, so in a application this should be as easy as creating a NSMutableURLRequest and then parse the response with an XMLParser?

Or is there another much better solution?

Thanks
hi ...thnx for sharing info... i have been going through the same security challenge; till now i have used simple Http but now will switch to Https cause of the idea that you have illustrated that first wait for didReceiveAuthenticationChallenge call back and then send the username/password and then use the safe conn. seems crystal clear. as it seems secure but have you found some more better solution then it ?
yunas is offline   Reply With Quote
Reply

Bookmarks

Tags
authentication, http, https, soap, xml

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 273
18 members and 255 guests
14DEV, ADY, ArtieFufkin10, Dani77, HemiMG, IphoneSdk, jakerocheleau, JasonR, jimbo, MACralik, NSeven, prchn4christ, Rudy, silverwiz, spiderguy84
Most users ever online was 1,187, 10-11-2011 at 08:09 AM.
» Stats
Members: 158,885
Threads: 89,230
Posts: 380,767
Top Poster: BrianSlick (7,129)
Welcome to our newest member, bookesp
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 02:57 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0