Highlighted

Coldfusion Authentication via Web Service

New Here ,
Nov 04, 2014

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?

Views

198

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

Coldfusion Authentication via Web Service

New Here ,
Nov 04, 2014

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?

Views

199

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Nov 04, 2014 0
vishu_13 LATEST
Enthusiast ,
Nov 05, 2014

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

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Nov 05, 2014 0