microsoft / botbuilder-dotnet

Welcome to the Bot Framework SDK for .NET repository, which is the home for the libraries and packages that enable developers to build sophisticated bot applications using .NET.
https://github.com/Microsoft/botframework
MIT License
865 stars 480 forks source link

Enable MSAL settings to save access token in cache #6706

Closed JhontSouth closed 7 months ago

JhontSouth commented 7 months ago

minor

Description

This PR adds the necessary MSAL settings to manage the cached access token value and not request a new value on each request.

Specific Changes

Testing

The following images show the interaction with the bot and the token values in every message. image image

tracyboehrer commented 7 months ago

@JhontSouth Appears to be failing in the Connector unit tests.

tracyboehrer commented 7 months ago

@JhontSouth We should check this in Node JS SDK too.

coveralls commented 7 months ago

Pull Request Test Coverage Report for Build 378018


Files with Coverage Reduction New Missed Lines %
/libraries/AdaptiveExpressions/LRUCache.cs 4 87.18%
/libraries/Microsoft.Bot.Connector/Authentication/MsalAppCredentials.cs 41 13.04%
<!-- Total: 45 -->
Totals Coverage Status
Change from base Build 378011: -0.007%
Covered Lines: 26130
Relevant Lines: 33311

💛 - Coveralls
BruceHaley commented 7 months ago

:heavy_check_mark: No Binary Compatibility issues for Microsoft.Bot.Connector.dll