Solved

Authentication

Posted on 2012-03-16
1
386 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

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.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

932 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

19 Experts available now in Live!

Get 1:1 Help Now