Make redirect uri optional as long as one is provided by either the client or the request