Skip to main content
WarrenJMeyer
Participant
November 5, 2014
Question

Coldfusion Authentication via Web Service

  • November 5, 2014
  • 1 reply
  • 369 views

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?

This topic has been closed for replies.

1 reply

vishu_13
Inspiring
November 5, 2014

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.htm

HTH

VJ