Changed to whitelist authentication and added guard file