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

Added token cache map to fix use of unintended auth token for subsequent connections #2341

Merged
merged 10 commits into from
Mar 20, 2024

Conversation

tkyc
Copy link
Member

@tkyc tkyc commented Mar 1, 2024

Copy link

codecov bot commented Mar 1, 2024

Codecov Report

Attention: Patch coverage is 23.48993% with 114 lines in your changes are missing coverage. Please review.

❗ No coverage uploaded for pull request base (main@ba88da8). Click here to learn what that means.

❗ Current head 7fbc9e1 differs from pull request most recent head 5eb8e84. Consider uploading reports for the commit 5eb8e84 to get more accurate results

Files Patch % Lines
...soft/sqlserver/jdbc/SQLServerDatabaseMetaData.java 8.62% 53 Missing ⚠️
...microsoft/sqlserver/jdbc/SQLServerMSAL4JUtils.java 0.00% 41 Missing ⚠️
.../microsoft/sqlserver/jdbc/SQLServerConnection.java 59.37% 5 Missing and 8 partials ⚠️
...lserver/jdbc/PersistentTokenCacheAccessAspect.java 20.00% 3 Missing and 1 partial ⚠️
...m/microsoft/sqlserver/jdbc/SQLServerException.java 50.00% 0 Missing and 3 partials ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2341   +/-   ##
=======================================
  Coverage        ?   50.00%           
  Complexity      ?     3789           
=======================================
  Files           ?      143           
  Lines           ?    33223           
  Branches        ?     5638           
=======================================
  Hits            ?    16612           
  Misses          ?    14227           
  Partials        ?     2384           

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

@Jeffery-Wasty Jeffery-Wasty requested review from lilgreenbird, Jeffery-Wasty and barryw-mssql and removed request for lilgreenbird March 5, 2024 21:38
@Jeffery-Wasty Jeffery-Wasty added this to In progress in MSSQL JDBC via automation Mar 5, 2024
@Jeffery-Wasty Jeffery-Wasty moved this from In progress to Under Peer Review in MSSQL JDBC Mar 5, 2024
@Jeffery-Wasty Jeffery-Wasty added this to the 12.7.0 milestone Mar 8, 2024
@tkyc tkyc merged commit 1d4b7d6 into main Mar 20, 2024
17 checks passed
MSSQL JDBC automation moved this from Under Peer Review to Closed/Merged PRs Mar 20, 2024
@tkyc tkyc deleted the token-cache-caching branch March 20, 2024 18:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
MSSQL JDBC
  
Closed/Merged PRs
Development

Successfully merging this pull request may close these issues.

Client credentials authentication - token cache returns unintended auth token
3 participants