user564968
user564968

Reputation:

Need some way for authentication in iphone device

In my application one requirement is there, in start up i want some authentication, by that in server side i can know who is using that appliation and i can store info of that persern other side.

i know one way of passing device id, but client dont want that way. is thare any other way for check in authenticate ?

If any one know way then please tell me ASAP.

Thank you for reply in addvance

Upvotes: 0

Views: 189

Answers (2)

Jack Lawrence
Jack Lawrence

Reputation: 10772

Edit, since the poster doesn't want to use usernames or passwords:

Use public key authentication. It's perfect for your use case, and very secure. Generate a keypair on the device on first launch and then send the public key to the server to register the device. Then whenever you want to authenticate the app's connection to the server, sign your data with your private key and then your server can decrypt it with the public key. Or you can reverse it and use a signed challenge. Make sure to encrypt the private key since someone could potentially steal it and compromise a user's data

Or (I'm totally joking, but...) you could have them answer a series of questions, hash the text of the questions, and send that to the server :D


Have you tried Parse? http://parse.com It has built in authentication and you can store data about a user server-side. You could also use a SHA/MD5 hash of a user-provided username, for example.

Please note that if you're searching online and see any references to a device UDID or UUID as a unique identifier, this method is deprecated and sometime in the future Apple reserves the right to reject your app from the app store.

Upvotes: 1

j_mcnally
j_mcnally

Reputation: 6958

Yes but this requires both iphone and server elements. In short this is a HUGE question. The 10,000 ft view is. Create an authentication app tied to a database that exposes an xml or json api. On load of your app display a view or a UI prompt, send the data from the view / prompt to the server for authentication, pass back a TRUE/FALSE response. Act accordingly.

Upvotes: 1

Related Questions