Can authenticate using a JSON struct.