add stub for onPrincipal, add default MemoryStore, and default nickname if not passed.