Simple authorization based on function name and list of keys.