Add authorisation depending on environment variables