Fix redirect uri mismatch issue in web server flow