Solved

Authentication

Posted on 2012-03-16
1
400 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

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:   …
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…
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

688 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