Copy link to clipboard
Copied
We have conytracted a company to build our company a mobile app. They want me to create a web service that will authenticate users. They will pass a username and password via URL. They arte expecting me to return either:
HTTP/1.1 403 Forbidden
Connection: close
if the credentials are invalid or
HTTP/1.1 204 No Content
if the credentials are valid.
How can I do this after performing a CFquery on my user's database?
Copy link to clipboard
Copied
In the remote cfc side you can validate the username and password, or return sort of token and asks the client to use that token going forward. The token can be CFID+CFTOKEN if you want to do so.
Check this article for more detail : http://www.bennadel.com/blog/1574-ask-ben-manually-enforcing-basic-http-authorization-in-coldfusion....
HTH
VJ