-
-
Notifications
You must be signed in to change notification settings - Fork 6.9k
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
Allow CompositeAuth auth methods to use their own user if defined #20308
base: master
Are you sure you want to change the base?
Conversation
mtangoo
commented
Jan 13, 2025
•
edited by samdark
Loading
edited by samdark
Q | A |
---|---|
Is bugfix? | ✔️ |
New feature? | ❌ |
Breaks BC? | ❌ |
Fixed issues | #20238 |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #20308 +/- ##
============================================
- Coverage 64.84% 64.84% -0.01%
- Complexity 11424 11427 +3
============================================
Files 431 431
Lines 37172 37177 +5
============================================
+ Hits 24106 24109 +3
- Misses 13066 13068 +2 ☔ View full report in Codecov by Sentry. |
I see this was discussed and proposed to be changed in 2.2. Are we doing this in 2.0 anyway? |
@bizley I don't see any compatibility issues with this change. Are there any? |
I think in 2.2 there will be a need to look at the API design itself and if necessary make breaking change. This is a "painkiller" approach to just fix the issue without any breaking changes |
With this change user set in the inner auth method will be used for it, now we are using user set in the composite auth. |
Only if is set. Otherwise it works as it used to! |
Yes, but now even if user is set in one of the methods it is ignored. |
Isn't that the purpose of defining user in auth method, that you want it to override anything else defined? |
I agree but this is BC break as was stated in #20238 |
I take it as a bug, because otherwise what is the point of an API allowing devs to pass user object of their choice if it ends up being discarded? IMO, this is a bug that wasn't uncovered for so long. |