Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to use <cfauthenticate>?

Status
Not open for further replies.

Rachel80

Programmer
May 25, 2000
63
GB
Hi, i read the manual on &lt;CFAUTHENTICATE&gt;..<br>but i still do not know how to implement it!<br><br>&lt;!--- This example shows the use of CFAUTHENTICATE<br>in an Application.cfm file ---&gt;<br>&lt;CFIF NOT IsAuthenticated(&quot;Allaire&quot;)&gt;<br>&nbsp;&nbsp;&lt;CFTRY&gt;<br>&nbsp;&nbsp;&lt;CFAUTHENTICATE c=&quot;Allaire&quot; USERNAME=#user#<br>&nbsp;&nbsp;&nbsp;&nbsp;PASSWORD=#pwd#&gt;<br>&nbsp;&nbsp;&lt;CFCATCH TYPE=&quot;Security&quot;&gt;<br>&nbsp;&nbsp;&nbsp;&lt;!--- the message to display ---&gt;<br>&nbsp;&nbsp;&nbsp;&lt;H3&gt;Authentication error&lt;/H3&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&lt;CFOUTPUT&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&lt;!--- Display the message. Alternatively, you might place<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;code here to define the user to the security domain. ---&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&lt;P&gt;#CFCATCH.message#<br>&nbsp;&nbsp;&nbsp;&nbsp;&lt;/CFOUTPUT&gt;<br>&nbsp;&nbsp;&lt;/CFCATCH&gt;<br>&nbsp;&nbsp;&lt;/CFTRY&gt;<br>&lt;/CFIF&gt;<br>&lt;CFAPPLICATION NAME=&quot;Personnel&quot;&gt;<br><br>What does 'SECURITYCONTEXT' mean?<br>Thanx :)
 
if you read the manual, then you should know that securitycontext is a required field in the cfauthenticate tag ;) !<br>---<br>copied from the doc :<br>&lt;CFAUTHENTICATE SECURITYCONTEXT=&quot;contexte&quot;<br>&nbsp;USERNAME=&quot;ID utilisateur&quot;<br>&nbsp;PASSWORD=&quot;mot de passe&quot;<br>&nbsp;SETCOOKIE=&quot;yes/no&quot; <br>&nbsp;THROWONFAILURE=&quot;yes/no&quot;&gt;<br>where only setcookie and throwonfailure are optional <br>---<br>and you have to set the security stuffs in the cf admin<br><br>have fun !<br>
 
yeah, its a required field..<br>and then how??<br>so is SECURITYCONTEXT user-defined?<br>whats the 'security stuffs' u meant??<br>Sorry that I'am abit slow..<br>
 
sorry, by security stuffs i meant security option<br>it depend son the cf server version you have : 4.01 or 4.5 ?? (that's the only 2 i know ...) - anyway in both servers you have 'basic security' and 'advanced security' settings and that is where you define the security context - but actually i haven't used this so i couldn't explain a lot more
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top