We would like to implement JSON Web Tokens authentication on the rest webservices module.
We developed an angular2 web interface for openmrs from scratch. The web interface consumes data from two sources.
Openmrs rest Server
ETL Server (summarised openmrs data and other integrations)
We have an nginx server that handles requests for the two servers. The web interface is also served using nginx.
Our ETL server authenticates using Openmrs.
We have a challange with authentication. At the moment, we have to send two authentication requests to the two servers.
With JSON web Tokens, we would be able to use one token for authentication on both servers.
We suggest that we add this feature on the current AuthenticationFilter or create a new JWT Authentication Filter.
We welcome suggestions on how best to approach this.