reword port and oauth flow