Skip to content

Conversation

@hao10282025-sudo
Copy link
Collaborator

@hao10282025-sudo hao10282025-sudo commented Jan 6, 2026

Summary

Fixes #7621

Changes proposed

Update the two opportunity retrieval endpoints to support both JWT auth (login.gov) and the new API key auth system:
GET /v1/opportunities/:opportunity_id
GET /v1/opportunities/:legacy_opportunity_id

Context for reviewers

As part of this change, the old/legacy API key authentication method will be deprecated and no longer valid.
The change aligns these endpoints with our broader API authentication strategy while ensuring external API consumers can continue accessing opportunity data through the new API key system.

Validation steps

  • Changes are not merged to main, put it in a draft PR
  • 2 endpoints are updated to support both types of auth
  • Comprehensive unit tests are updated and changes are tested locally

Copy link
Collaborator

@chouinar chouinar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@hao10282025-sudo hao10282025-sudo merged commit 2828653 into main Jan 7, 2026
1 check passed
@hao10282025-sudo hao10282025-sudo deleted the hao/7621-update-oppor-endpoints branch January 7, 2026 18:50
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.

Update the 2 opportunity endpoints to support both types of auth

3 participants