Allow to pass a whitelist lambda option for choosing which channels do not need authentication

You should check for errors when executing the block, consider the channel private if the lambda raises.