Lightweight ws-federation middleware using JSON Web Tokens