Infer callback uri if not provided