I am writing a WPF application that I need to authenticate with our current PHP based online website. I have full control other both, so any recommendation is possible.
I do not know whether it would be best to use:
- Pass the username and password via post/get to an API and see if the user is “valid”
- Connect to the database directly (probably not a good idea)
- JSON or XML?
A few suggestions: