Skip to content

ENG-3275: Display named OAuth clients#7869

Draft
tvandort wants to merge 4 commits intoENG-3001-ui-scope-pickerfrom
ENG-3275
Draft

ENG-3275: Display named OAuth clients#7869
tvandort wants to merge 4 commits intoENG-3001-ui-scope-pickerfrom
ENG-3275

Conversation

@tvandort
Copy link
Copy Markdown
Contributor

@tvandort tvandort commented Apr 9, 2026

ENG-3275

Description Of Changes

Code Changes

Steps to Confirm

Pre-Merge Checklist

  • Issue requirements met
  • All CI pipelines succeeded
  • CHANGELOG.md updated
    • Add a db-migration This indicates that a change includes a database migration label to the entry if your change includes a DB migration
    • Add a high-risk This issue suggests changes that have a high-probability of breaking existing code label to the entry if your change includes a high-risk change (i.e. potential for performance impact or unexpected regression) that should be flagged
    • Updates unreleased work already in Changelog, no new entry necessary
  • UX feedback:
    • All UX related changes have been reviewed by a designer
    • No UX review needed
  • Followup issues:
    • Followup issues created
    • No followup issues
  • Database migrations:
    • Ensure that your downrev is up to date with the latest revision on main
    • Ensure that your downgrade() migration is correct and works
      • If a downgrade migration is not possible for this change, please call this out in the PR description!
    • No migrations
  • Documentation:
    • Documentation complete, PR opened in fidesdocs
    • Documentation issue created in fidesdocs
    • If there are any new client scopes created as part of the pull request, remember to update public-facing documentation that references our scope registry
    • No documentation updates required

@tvandort tvandort changed the base branch from main to ENG-3001-ui-scope-picker April 9, 2026 12:51
@vercel
Copy link
Copy Markdown
Contributor

vercel bot commented Apr 9, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

2 Skipped Deployments
Project Deployment Actions Updated (UTC)
fides-plus-nightly Ignored Ignored Apr 9, 2026 1:28pm
fides-privacy-center Ignored Ignored Apr 9, 2026 1:28pm

Request Review

@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 9, 2026

Title Lines Statements Branches Functions
admin-ui Coverage: 8%
6% (2609/43458) 5.01% (1235/24629) 4.13% (533/12890)
fides-js Coverage: 78%
78.98% (1962/2484) 65.55% (1214/1852) 72.57% (336/463)
privacy-center Coverage: 88%
85.93% (330/384) 81.1% (176/217) 78.87% (56/71)

@tvandort tvandort force-pushed the ENG-3001-ui-scope-picker branch from 960be34 to ac17689 Compare April 9, 2026 13:26
tvandort and others added 4 commits April 9, 2026 09:26
Add client_id field to RequestContext with get_client_id/set_client_id
helpers. Update both sync and async extract_token_and_load_client() to
call set_client_id() when the authenticated actor is a non-user-linked
API client (no user_id, not root). Previously these requests left the
context empty, making attribution impossible.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- test_request_context.py: unit tests for get/set_client_id, isolation
  from user_id/request_id, and reset behavior
- conftest.py: add request_context_client_id fixture alongside the
  existing request_context_user_id fixture
- test_request_context_population.py: tests for the actor-type branching
  logic (user-linked client → user_id, API client → client_id,
  root client → user_id set to root_client_id)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…ttachmentService

EventAuditService.create_event_audit() gains an explicit client_id kwarg
and falls back to get_client_id() from request context, mirroring the
existing user_id / get_user_id() pattern.

AttachmentService.create_and_upload() injects client_id from request
context into the data dict if the caller hasn't already set it, so API
client uploads are attributed without changing every call site.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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