I've got a controller extension I'm trying to deploy to a public custom url. It works in our sandbox, and I can access it with "Preview" under the custom url, but I get the dreaded Authorization Required message when I try to access it via the public site user.
My question is: How can I find what objects, or other permissions are required? Is it just enable stuff until it works, or can I find the error message somewhere?
The debug logs show my class starting:
16:46:07.4 (35710600)|USER_DEBUG||DEBUG|Starting work 16:46:07.4 (35730187)|STATEMENT_EXECUTE| 16:46:07.4 (50776332)|SYSTEM_MODE_EXIT|false
but nothing after my line of code:
System.debug('Starting work'); Opportunity passed_o = (Opportunity)stdController.getRecord(); System.debug('Got my record id: ' + passed_o.id);
Where am I supposed to find what's making it stop??