More exact optional publish time setting
Code for full authorize workflow
Minor hardening for some null case