prime-reportstream icon indicating copy to clipboard operation
prime-reportstream copied to clipboard

Authorize application user to hit submissions endpoint

Open jalbinson opened this issue 1 year ago • 0 comments

User Story

We want to tie together the pieces to authorize an sender

Risks/Impacts/Considerations

We do not want any sender to submit reports as another organization

Dev Notes

  • Use preauthorize annotation to check for sender scope in submissions endpoint
  • Read in custom header via shared JWT code done in #16153
    • Add public key to submissions configuration to be able to verify signature
  • Make sure application user contains correct groups to submit report

Acceptance Criteria

  • Requests are authenticated and authorized
    • Both scope and groups are checked
  • unit tests

jalbinson avatar Oct 09 '24 15:10 jalbinson