Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Coldfusion Authentication via Web Service

New Here ,
Nov 04, 2014 Nov 04, 2014

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?

326
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Nov 05, 2014 Nov 05, 2014
LATEST

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

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