Skip to content

Resolves issue #1666, Authenticate vs Authorize ordering on routes in controllers#1807

Open
afoote-mitre wants to merge 1 commit into
v2.8.0_featurefrom
af-1666
Open

Resolves issue #1666, Authenticate vs Authorize ordering on routes in controllers#1807
afoote-mitre wants to merge 1 commit into
v2.8.0_featurefrom
af-1666

Conversation

@afoote-mitre
Copy link
Copy Markdown
Collaborator

@afoote-mitre afoote-mitre commented May 11, 2026

Closes Issue #1666

Summary

One route in both the Registry Org and Audit controllers was verifying if a user is authorized ( if they are secretariat) before authenticating the user. The order of these operations has been correctly flipped to ensure that the user is authenticated first, then evaluated for authority to call the route in question.

Important Changes

registry-org.controller/index.js

  • Updated authentication vs authorization order on the POST endpoint

audit.controller/index.js

  • Updated authentication vs authorization order on the GET last 'x' changes endpoint

Testing

Steps to manually test updated functionality, if possible

  • 1) Run npm run test:integration and ensure all tests pass as expected

@afoote-mitre afoote-mitre requested a review from david-rocca May 11, 2026 17:56
@afoote-mitre afoote-mitre self-assigned this May 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant