How to use PHP-based authentication from non-PHP based AJAX app?
Posted
by DavidR
on Stack Overflow
See other posts from Stack Overflow
or by DavidR
Published on 2010-06-18T08:18:40Z
Indexed on
2010/06/18
8:23 UTC
Read the original article
Hit count: 246
I've been asked to create a stand-alone webapp using "straight" HTML and Javascript that does user authentication against an existing PHP app (backend is MySQL). Unfortunately, I really don't have a firm grasp on how PHP authentication works, and I'd rather not invest a lot of time in learning PHP just for this particular case.
I can see two possibilites so far
1) create a PHP wrapper around my new app and use native PHP authentication (don't like this)
2) create a simple REST-ful webservice around the PHP authentication (don't know how to do this)
Anything else I should consider? Help is much appreciated!
© Stack Overflow or respective owner