> Hi I am trying to use Integrated Windows Security to > authenticate my users, but I am having a problem setting user > roles using the cf security framework. The problem is that > the code inside the cflogin tag never runs because the user > is logged in even before the Application.cfc runs. As a > result I never have a chace to set the user roles. Is there > any way to do this or am I going to have to build my own > security structure? > > Here's what I am trying to run: > > <cflogin> > <cfloginuser name="#cgi.auth_user#" password=" " > roles="#application.Security.getUserRoles()#" /> </cflogin>
The CFLOGIN tag should run regardless of whether you use web server security, I think. Check out the example within the CF 7 documentation: http://livedocs.macromedia.com/coldfusion/7/htmldocs/wwhelp/wwhimpl/common/h tml/wwhelp.htm?context=ColdFusion_Documentation&file=part_dev.htm 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! ---------------------------------------------------------- You are subscribed to cfcdev. To unsubscribe, send an email to [email protected] with the words 'unsubscribe cfcdev' as the subject of the email. CFCDev is run by CFCZone (www.cfczone.org) and supported by CFXHosting (www.cfxhosting.com). An archive of the CFCDev list is available at www.mail-archive.com/[email protected]
