function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
FrodoBeutlinFrodoBeutlin 

Securely turn on/off components of an application on a per customer basis

Hi everyone!

 

I want to activate different components of my application for different customers/installations.

 

Any hints which is the best way to do this?

 

Options I consider:

1) Store Booleans for each component in a protected custom setting and check this each time the user tries to run a component. (http://wiki.developerforce.com/page/Secure_Coding_Storing_Secrets#Apex_and_Visualforce_Applications  )

2) Store digitally signed string with the information somewhere and verify the signature and the Booleans inside each time a user tries to run a component. Slower for sure, but maybe more secure? I would try to use the Crypto Class for that ( http://www.salesforce.com/us/developer/docs/apexcode/index_Left.htm#CSHID=apex_classes_restful_crypto.htm|StartTopic=Content%2Fapex_classes_restful_crypto.htm|SkinName=webhelp ).

 

Of course there mustn't be any way for customers to turn on components by themselves.

 

I would appreciate any hints very much :smileyhappy:, thank you,

 

Frodo

 

Related things:

http://success.salesforce.com/ideaView?id=08730000000BrW7