COnfigure json authentication