Changes for authAPI to support MAAS plugin