How to use PHP-based authentication from non-PHP based AJAX app?
- by DavidR
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!