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

Fix | Throttling of token requests by calling AcquireTokenSilent #1925

Merged
merged 3 commits into from Mar 14, 2023

Conversation

David-Engel
Copy link
Contributor

@David-Engel David-Engel commented Feb 15, 2023

Address throttling of token requests by calling AcquireTokenSilent in AAD Integrated/Password flows when the account is already cached.

Addresses issue #1915

For reviewing the changes, hiding whitespace produces a slightly easier to read diff.

… Integrated/Password flows when the account is already cached.

Addresses issue dotnet#1915
@David-Engel David-Engel changed the title Address throttling of token requests by calling AcquireTokenSilent Fix | Throttling of token requests by calling AcquireTokenSilent Feb 15, 2023
@codecov
Copy link

codecov bot commented Feb 15, 2023

Codecov Report

Patch coverage: 30.88% and project coverage change: +0.10 🎉

Comparison is base (22eb6c7) 70.68% compared to head (76591e0) 70.78%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1925      +/-   ##
==========================================
+ Coverage   70.68%   70.78%   +0.10%     
==========================================
  Files         292      292              
  Lines       61727    61805      +78     
==========================================
+ Hits        43629    43747     +118     
+ Misses      18098    18058      -40     
Flag Coverage Δ
addons 92.38% <ø> (ø)
netcore 74.45% <30.88%> (+0.32%) ⬆️
netfx 69.08% <30.88%> (-0.08%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
...SqlClient/ActiveDirectoryAuthenticationProvider.cs 59.57% <30.88%> (-0.33%) ⬇️

... and 19 files with indirect coverage changes

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

Copy link
Member

@cheenamalhotra cheenamalhotra left a comment

Choose a reason for hiding this comment

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

LGTM

@lcheunglci lcheunglci added this to the 5.2.0-preview1 milestone Feb 22, 2023
Co-authored-by: DavoudEshtehari <61173489+DavoudEshtehari@users.noreply.github.com>
@David-Engel David-Engel merged commit d9ab5a9 into dotnet:main Mar 14, 2023
127 of 130 checks passed
@David-Engel David-Engel deleted the tokcache branch March 14, 2023 20:05
lcheunglci added a commit to lcheunglci/SqlClient that referenced this pull request Mar 23, 2023
…net#1925)

* Address throttling of token requests by calling AcquireTokenSilent in Integrated/Password flows when the account is already cached.

Addresses issue dotnet#1915

Co-authored-by: Lawrence Cheung <31262254+lcheunglci@users.noreply.github.com>
Co-authored-by: DavoudEshtehari <61173489+DavoudEshtehari@users.noreply.github.com>
@DavoudEshtehari DavoudEshtehari linked an issue Apr 13, 2023 that may be closed by this pull request
DavoudEshtehari added a commit to DavoudEshtehari/SqlClient that referenced this pull request Apr 13, 2023
…net#1925)

* Address throttling of token requests by calling AcquireTokenSilent in Integrated/Password flows when the account is already cached.

Addresses issue dotnet#1915

Co-authored-by: Lawrence Cheung <31262254+lcheunglci@users.noreply.github.com>
Co-authored-by: DavoudEshtehari <61173489+DavoudEshtehari@users.noreply.github.com>
# Conflicts:
#	src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/ActiveDirectoryAuthenticationProvider.cs
DavoudEshtehari added a commit to DavoudEshtehari/SqlClient that referenced this pull request Apr 13, 2023
…net#1925)

* Address throttling of token requests by calling AcquireTokenSilent in Integrated/Password flows when the account is already cached.

Addresses issue dotnet#1915

Co-authored-by: Lawrence Cheung <31262254+lcheunglci@users.noreply.github.com>
Co-authored-by: DavoudEshtehari <61173489+DavoudEshtehari@users.noreply.github.com>
# Conflicts:
#	src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/ActiveDirectoryAuthenticationProvider.cs
DavoudEshtehari added a commit to DavoudEshtehari/SqlClient that referenced this pull request Apr 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
💡 Enhancement New feature request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ActiveDirectoryIntegrated auth in SSMS 19 hits MSAL throttling
4 participants