formatted json output of authentication endpoints