Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Authentication

Posted on 2012-03-16
1
Medium Priority
?
412 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 1500 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

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Preface   In the first 100 days of the Macintosh release in January 1984, Apple sold 72,000 of the computers. Relatively cheap, easy-to-use personal computer with a graphical operating system. I've never seen this model. I did see this one:   …
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.
Video by: ITPro.TV
In this episode Don builds upon the troubleshooting techniques by demonstrating how to properly monitor a vSphere deployment to detect problems before they occur. He begins the show using tools found within the vSphere suite as ends the show demonst…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…

963 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