add a token security authentication (to be moved into a specific lib)