We have to use some kind of a way to protect the endpoints, may be using a token based mechanism. What are the good solutions?