Redirect uri is optional.