Adding authentication parameters to publish