make scheme for token endpoint configurable