adding authentication support for 2.4 with backwards compatibility refs #39