nhsconnect / gpconnect-demonstrator

GP Connect demonstrator is a reference implementation of a GP Connect providing system and a consumer system demonstration
https://orange.testlab.nhs.uk/
Apache License 2.0
17 stars 10 forks source link

JWT validation #239

Closed jonnyry closed 5 years ago

jonnyry commented 5 years ago

In order to ensure consumers are built in line with recently clarified JWT requirements at:

https://gpconnect-0-5-2.netlify.com/integration_cross_organisation_audit_and_provenance.html#jwt-payload

Suggest the following JWT validation should occur, and return an OperationOutcome with information on the error in the diagnostics element where a failure occurs:


This has been transposed from the 1.2.3 ticket: https://github.com/nhsconnect/gpconnect-demonstrator/issues/209

SimonFarrowNHS commented 5 years ago

Extra requirements for validating requesting_device: an requesting_device.identifier element should be present containing both system and value elements requesting_device.version and requesting_device.model elements must also be populated.