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?

Johnny

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:199471
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=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to