140 likes | 251 Views
Security in ColdFusion MX. Raymond Camden, jedimaster@macromedia.com ColdFusion Engineer Date: June 15 th , 2002. Agenda. Basic Security Concepts Security in ColdFusion Security tags and functions Example Q and A. Basic Security Concepts. Authentication
E N D
Security in ColdFusion MX Raymond Camden, jedimaster@macromedia.com ColdFusion Engineer Date: June 15th, 2002
Agenda • Basic Security Concepts • Security in ColdFusion • Security tags and functions • Example • Q and A
Basic Security Concepts • Authentication • Proving that you are who you say you are. • Authorization • Proving that you can do something.
Security in ColdFusion • Prior to CFMX • Advanced Security • “Roll Your Own” • CFMX • Roles-based Security
Security Tags • <cflogin> • Runs when user is not authenticated. • cflogin scope. • Attributes: • idleTimeout • Seconds • Defaults to 20 minutes • applicationToken • Defaults to current application. • cookieDomain
<cfloginuser> & <cflogout> • Marks the user as being authenticated. • Attributes: • name • password • roles • Defines the roles for the users (think groups) • <cflogout> logs a user out. (Surprised?)
cflogin scope • Allows for multiple authentication types • Form (j_username, j_password) • URL (j_username, j_password) • Web Server authentication • Flash API • Clusters
Security Functions • GetAuthUser() • Returns username if logged in. • Returns empty string if not authenticated. • IsUserInRole(role) • Returns true if current user is in a role.