CodeIgniter Forums
tank auth via mobile device - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: tank auth via mobile device (/showthread.php?tid=27813)



tank auth via mobile device - El Forum - 02-21-2010

[eluser]vivar[/eluser]
Hi,

1. I am connecting to CI via native iPhone app
2. I am testing out Tank auth

I only want to "pull" certain data from MySQL depending on the user so the user is presented with a login screen within the mobile app and those credentials would be used for user verification by tank auth.

Question 1:
Can I login to my CI app (which is currently using tank auth) via url since I do not want to use a webform for this? How would I do this? I've seen PHP code where you send http://example.com/login?user=exampleUser&pwd=examplePwd but how would this work with tank?

Question 2:
Am I safe to pass the username / password via url AS long as I am creating an HTTPS (SSL) connection?

Regards and thanks for your time,
Vivar


tank auth via mobile device - El Forum - 02-21-2010

[eluser]vivar[/eluser]
Ok, figured it out after posting (usually the way it goes).

Question 1 answer: the method is "post" not "get".

Question 2 answer: Creating an HTTPS (SSL) connection encrypts all communication between the client and the server.