Creating a spark REST service using jwt authentication.