Avoid authorize module in cli mode, because don't pass unit tests