Introduce token authentication #2431