*/
@Override
public void authorize(final PrincipalActionContext inActionContext) throws AuthorizationException
{
String consumerKey = (String) inActionContext.getParams();
Long gadgetCount = verifyMapper.execute(new GetGadgetsByGadgetDefAndConsumerKeyRequest(consumerKey,
inActionContext.getPrincipal().getId()));
if (gadgetCount <= 0)
{
throw new AuthorizationException("The user supplied with this OAuth request does not have the app "
+ "associated with this consumer key installed on their start page.");