New sample which shows how to use a cached client secret to perform

actions on behalf of a user even when they are not logged on.