fix oauth to work with new router, synapse-common changes