Authentication via PIN

From #3265.