Neptune 1.0 Beta 3 Documentation: Secure a Program

Neptune Information

Download from RIA Forge

Secure a Program

If you have a security service running on Neptune and your program, you can restrict a program to be available only to users with at least one of a selected list of permissions.

This can be done the following ways:

Using the "links" method

If your Program.cfc has a "links" method, then you can add a "permissions" attribute to the "program" element:

<cffunction name="links" access="public" returntype="string" output="yes">
<program permissions="CMS">
	<link label="Pages" url="page-list.cfm" />
	<link label="Sections" url="section-list.cfm" />
</program>
</cffunction>

Using the "security_permissions" attribute

If your Program.cfc does not have a "links" method then you can add an attribute called "security_permissions" to the "cfcomponent" tag of your Program.cfc:

<cfcomponent extends="_framework.BaseProgram" output="false" security_permissions="CMS">

</cfcomponent>

Manually editing programlinks.cfm

If you don't have a Program.cfc file then you can manually add entries (with appropriate "permissions" attributes) to your /_config/programlinks.cfm file.