Solved

Authentication

Posted on 2012-03-16
1
383 Views
Last Modified: 2012-03-29
Hi, what is the best way to do an authentication system(username and password) on a iPhone application. The authentication should be local and online (website). What the best cms anyhow to work in cooperation with IOS?
If there is any tutorial or example about the subject i would be very thankful.
I hope i was clear on the question, i apologise for the bad english.
0
Comment
Question by:BrunoSurprise
1 Comment
 
LVL 33

Accepted Solution

by:
pgnatyuk earned 500 total points
ID: 37732327
Many ways. For example:

1. You can make a simple code that will save the username and password in the app settings (NSUserDefaults):

save:
[[NSUserDefaults standardUserDefaults] setObject:userName forKey:@"user_name"];
[[NSUserDefaults standardUserDefaults] setObject:password forKey:@"password"];
[[NSUserDefaults standardUserDefaults] synchronize];

restore:
userName  = [[NSUserDefaults standardUserDefaults] stringForKey:@"user_name"];
password = [[NSUserDefaults standardUserDefaults] stringForKey:@"password"];

2. Use Keychain Access

How Not to Store Passwords in iOS

Read and Write User Preferences

3. Facebook login is a very popular solution now.
http://developers.facebook.com/docs/guides/mobile/
https://developers.facebook.com/docs/mobile/ios/build/
https://developers.facebook.com/docs/reference/iossdk/authentication/

4. Use twitter
http://mobile.tutsplus.com/tutorials/iphone/twitter-api-iphone/
https://github.com/bengottlieb/Twitter-OAuth-iPhone

iPhone Programming Tutorial: Integrating Twitter Into Your iPhone Applications
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

CocoaPods is the best way to manage library dependencies in iOS and OS X projects. By using cocoa pods there is no need of downloading the code from github and copying to your project. There are plenty of open source libraries now available with C…
Do you come here a lot? Are you lazy like me and don't want to go through the "trouble" of having to click your Dock's Safari icon and then having to click your Experts Exchange Favorites bookmark to get here? Well then this article is for you.
This video discusses moving either the default database or any database to a new volume.
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

757 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now