iOS app, place to save user id and password - iphone

I am new to IOS development. Anyone can advise where is the best place to save the user id and password? My app is running on iPhone.
Thanks
Aimar

You can use the Keychain to store the users username and password securely. Apple do actually provide some example code here. You want to be looking at the KeychainItemWrapper classes. And if you want something a little more advanced you could also have a look at implementing the KeychainTouchID example code here.
If you don't want to use Apples version though there are a selection of alternatives online
SSKeychain
FXKeychain
LUKeychainAccess
And here's the google search I did

You can try save confidential information, such as userId and token in Keychain. This one is simple and straightforward https://github.com/kharrison/UYLPasswordManager.
Regards
Hammer

Related

Storing cookies to persist credentials for an iPhone app

I've been doing a bit of research on the subject, and I'm a little confused about storing cookies within an iOS app. I want to be able to store a user's login credentials so that they don't have to log in every time they launch the app (much like Facebook's app does). I'm kind of lost on how to do that though. Here are some of the specific questions I have:
When the user logs in, does a cookie get stored automatically? If so, where? If not, how do I store it?
How can I check for that cookie and access it, examine it, etc.? Maybe on a relaunch of the app or something.
How is storing a cookie with user credentials different than storing them in the keychain? Or are they the same thing?
When a user presses "logout" in the app, should that delete the persistent cookie? It must, right?
What's the best way to store these cookies? What does iOS automatically do for you, and what do you have to do yourself?
Is there an advantage to using ASIHTTP stuff for things like this? If so, what does the ASI library offer that the NSURL stuff doesn't? Does the treatment of cookies change when using the ASIHTTP library?
As I'm sure you can tell, I'm pretty lost, and don't know all that much about how cookies work, but I'm trying to figure it out, and any help is much appreciated!
Are you using a webview for your app or something?
Update:
You should store the username/password combination in the keychain. There are several wrappers available for this, one of my favorites:
Keychain Swift
It is however; more secure to use an access token so that the username and password combination are never stored on device.

App Store review integration

I'd like to know how to put that menu inside my app that asks the user to review my app and redirects him to App Store to do so. Searched around but couldn't find much information, probably I'm not using the right keywords.
There's a nice library called Appirater for that.
If AppIRater is too heavy for you, you can send them directly to the page by using the format:
itms-apps://ax.itunes.apple.com/WebObjects/MZStore.woa/wa/viewContentsUserReviews?type=Purple+Software&id=APP_ID
… where APP_ID is your iTunes numerical application id.

How To Handle User Login/Registration?

I have an iPhone app that uses core data. I want to add account management to this app for backup and social reasons. What is the easiest way to handle account registration and login? Will I need to create a PHP script or create an XML/JSON file?
Any advice would be great. I have no idea what to do (I'm only familiar with Cocoa Touch).
Edit:
I think I will be going with a twitter login. Hmm, so if I do a twitter login, when the user signs in, their account data will be loaded into my database? Or something similar? I think I still need my own server because if a user signs in from another device, their data should show up there too.
From a usability standpoint, it would be best to use login's from Facebook or Twitter as the user will generally prefer to have a single login. They make sdk's for this, and it also reduces the amount of work you have to do on your end to maintain accounts. If the account is essential to your app then explore other options, but if it is just social, as you mentioned above, don't reinvent the wheel.

iPhone App Store Release Question!

I am developing an Application its purpose to view uploaded files on a host server, and it has a credentials that will be entered on the Login Page to authenticate the user.
My Question! when I post my application to the App Store how suppose apple is going to test or at least view my application when Apple needs enter a valid credentials that I am not suppose to know, it's private to my client.
Any guide would be greatly appreciated.
How do you test your application yourself?
There is an extra field to give the Appstore people some hints / explanation. Generally, you'd use that field to give them a demo account on the server so they can the app.

I don't know how to save Login Information of user on iPhone

I am making app about google documents. but I don't know How to save Login Information
Document Folder ? Cache Folder ? Where save Login Information ?
The best option is to use the keychain.
There's example code at the Apple site or Buzz Anderson has some great code at his site
Alternatively you could use NSUserDefaults but that's less secure. The keychain is encrypted, user defaults are not (unless you encrypt before insertion but that's extra work)