Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Authentication

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

[Webinar] Lessons on Recovering from Petya

Skyport is working hard to help customers recover from recent attacks, like the Petya worm. This work has brought to light some important lessons. New malware attacks like this can take down your entire environment. Learn from others mistakes on how to prevent Petya like worms.

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.
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…

721 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