change authentication settings grom GLOBLE vars to ENV vars