> I am playing with basic WWW-Authenticate tonight and I got this far:
> 
> <cfif CGI.HTTP_AUTHORIZATION IS "Basic Og=="> <cfsetting 
> enablecfoutputonly="yes" showdebugoutput="no"> <cfheader 
> statuscode="401"> <cfheader name="WWW-Authenticate" 
> value="Basic realm=""test"""> Authorization failed <cfelse>
> 
> ???
> 
> </cfif>
> 
> What I don't know is what needs to go into the cfelse 
> statement if I want to authenticate the user input against a 
> database.  The CGI.HTTP_AUTHORIZATION variable returns 
> something like "Basic b25lOm5vbmU=".  So it is not exactly 
> something I could use to validate it against the username and 
> password in the database.  So what can I do?

Basic Authentication is handled by your web server, so if you wanted to use
Basic Authentication to authenticate against a database, your web server
would need to be configured to do so. Typically, if you want your ColdFusion
application to authenticate users against a database, you use forms-based
authentication within your application rather than having the web server do
any authentication at all.

If you are using IIS, you can purchase a component called iAuth from
www.coolfusion.com, which will let you configure IIS to perform Basic
Authentication using a database instead of against Windows user accounts.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/

Fig Leaf Software provides the highest caliber vendor-authorized 
instruction at our training centers in Washington DC, Atlanta, 
Chicago, Baltimore, Northern Virginia, or on-site at your location. 
Visit http://training.figleaf.com/ for more information!


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:199481
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to