Revert "tom: add support for dynamic returnUrl and realms"

This reverts commit 9ad1921fc5d138e05d62364b67cd4d3c0cb59ebf.