Skip to content

Commit 7049166

Browse files
authored
Updating to MSAL.NET 3.0.0-preview (#85)
1 parent 50ab952 commit 7049166

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

Microsoft.Identity.Web/Client/MsalUiRequiredExceptionFilterAttribute.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ private bool CanBeSolvedByReSignInUser(MsalUiRequiredException ex)
4848
// InMemoryCache, the cache could be empty if the server was restarted. This is why
4949
// the null_user exception is thrown.
5050

51-
return ex.ErrorCode == MsalUiRequiredException.UserNullError;
51+
return ex.ErrorCode == MsalError.UserNullError;
5252
}
5353

5454
/// <summary>

Microsoft.Identity.Web/Client/TokenAcquisition.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
3030
using Microsoft.Extensions.DependencyInjection;
3131
using Microsoft.Extensions.Primitives;
3232
using Microsoft.Identity.Client;
33-
using Microsoft.Identity.Client.AppConfig;
3433
using Microsoft.Identity.Web.Client.TokenCacheProviders;
3534
using Microsoft.Net.Http.Headers;
3635
using System;
@@ -395,7 +394,7 @@ public void ReplyForbiddenWithWwwAuthenticateHeader(HttpContext httpContext, IEn
395394
{
396395
// A user interaction is required, but we are in a Web API, and therefore, we need to report back to the client through an wwww-Authenticate header https://tools.ietf.org/html/rfc6750#section-3.1
397396
string proposedAction = "consent";
398-
if (msalSeviceException.ErrorCode == MsalUiRequiredException.InvalidGrantError)
397+
if (msalSeviceException.ErrorCode == MsalError.InvalidGrantError)
399398
{
400399
if (AcceptedTokenVersionIsNotTheSameAsTokenVersion(msalSeviceException))
401400
{

Microsoft.Identity.Web/Microsoft.Identity.Web.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@
77
<ItemGroup>
88
<PackageReference Include="Microsoft.AspNetCore.App" />
99
<PackageReference Include="Microsoft.AspNetCore.Authentication.AzureAD.UI" Version="2.2.0" />
10-
<PackageReference Include="Microsoft.Identity.Client" Version="3.0.2-preview" />
10+
<PackageReference Include="Microsoft.Identity.Client" Version="3.0.3-preview" />
1111
</ItemGroup>
1212
</Project>

0 commit comments

Comments
 (0)