Implemented token-based authentication with a WebAPI server.