Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve auth interceptor operation handling #6278

Merged

Conversation

jamesagnew
Copy link
Collaborator

Fixes #6258

Copy link

github-actions bot commented Sep 10, 2024

Formatting check succeeded!

@codeforgreen
Copy link
Collaborator

codeforgreen commented Sep 11, 2024

This is an interesting fix. Thank you for addressing it.

I don't see a change to the behaviour in the AuthorizationInterceptor itself. I suppose the previous change in 7.4.0 caused the regression by un-intentionally revealing another bug because it eliminated usage of checking the contents of a response (Bundle) resource based on RequestDetails.

So it was like the decision was based on both request and response. And it looks like you made sure the authorization checks happen separately.

@gijsbert802
Copy link
Contributor

Any update on this? I see 1 test failed in the pipeline, but when I run that test locally it passes.

@jamesagnew jamesagnew enabled auto-merge (squash) October 18, 2024 09:40
Copy link

codecov bot commented Oct 18, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 83.55%. Comparing base (406db33) to head (5a27065).
Report is 74 commits behind head on master.

Additional details and impacted files
@@             Coverage Diff              @@
##             master    #6278      +/-   ##
============================================
+ Coverage     83.54%   83.55%   +0.01%     
- Complexity    27432    27771     +339     
============================================
  Files          1707     1738      +31     
  Lines        106185   107433    +1248     
  Branches      13397    13488      +91     
============================================
+ Hits          88710    89770    +1060     
- Misses        11750    11879     +129     
- Partials       5725     5784      +59     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@jamesagnew jamesagnew merged commit 2b38585 into master Oct 18, 2024
66 checks passed
@jamesagnew jamesagnew deleted the ja_20240910_6258_improve_auth_interceptor_operation_handling branch October 18, 2024 11:21
jamesagnew added a commit that referenced this pull request Oct 18, 2024
jamesagnew added a commit that referenced this pull request Oct 18, 2024
jamesagnew added a commit that referenced this pull request Oct 18, 2024
@jamesagnew
Copy link
Collaborator Author

Apologies - Once this was merged, we saw a few downstream test failures, so I had to back this out while I try to figure out why.

Second attempt at merging this will be on #6382

jamesagnew added a commit that referenced this pull request Nov 1, 2024
* Revert "Revert "Improve auth interceptor operation handling (#6278)" (#6381)"

This reverts commit 422d4f0.

* Move changelog
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.

AuthorizationInterceptor no longer works on response of $document operation
3 participants