Hi all,
since APEX 5 we have three nice variables available in authorization schemes
:APP_COMPONENT_TYPE,:APP_COMPONENT_ID, :APP_COMPONENT_NAME
which is what I've always wanted, so we can create just one very precise authorization scheme and just pass (for instance) :app_user and :app_component_id into the authorization function. The problem is that I have no idea where to comfortably and efficiently find COMPONENT_IDs. Let's say I have a page with region (any type) and a button. Where can I get their IDs? I can add debug messages into the authorization scheme like this
begin
apex_debug.message('Evaluating component: %s %s %s',:app_component_type,:app_component_id, :app_component_name);
return my_auth_pkg.user_is_authorized(:app_user,:app_component_id);
end;
apply it to my components and later check the debug trace, but this seems to be quite cumbersome.
Thanks a lot,
Pavel