question

BermudezNuezJuanPablo-9415 avatar image
0 Votes"
BermudezNuezJuanPablo-9415 asked MarileeTurscak-MSFT commented

I don't know which version of adal/msal I currently have

Hello, can anyone help me to identify which version of MSAL/ADAL I'm currently using? my application is developed on .NET, this is the content my packages file,

 <?xml version="1.0" encoding="utf-8"?>
 <packages>
   <package id="Antlr" version="3.4.1.9004" targetFramework="net452" />
   <package id="Autofac" version="3.5.2" targetFramework="net452" />
   <package id="Autofac.Configuration" version="3.3.0" targetFramework="net452" />
   <package id="Autofac.Mvc5" version="3.3.4" targetFramework="net452" />
   <package id="Autofac.WebApi2" version="3.4.0" targetFramework="net452" />
   <package id="CommonServiceLocator" version="1.3" targetFramework="net452" />
   <package id="EnterpriseLibrary.Common" version="6.0.1304.0" targetFramework="net452" />
   <package id="EnterpriseLibrary.ExceptionHandling" version="6.0.1304.0" targetFramework="net452" />
   <package id="EnterpriseLibrary.ExceptionHandling.Logging" version="6.0.1304.0" targetFramework="net452" />
   <package id="EnterpriseLibrary.Logging" version="6.0.1304.0" targetFramework="net452" />
   <package id="EnterpriseLibrary.Validation" version="6.0.1304.0" targetFramework="net452" />
   <package id="EntityFramework" version="6.1.3" targetFramework="net452" />
   <package id="HttpClient" version="0.3.0" targetFramework="net452" />
   <package id="Microsoft.AspNet.Mvc" version="5.1.0" targetFramework="net452" />
   <package id="Microsoft.AspNet.Razor" version="3.1.0" targetFramework="net452" />
   <package id="Microsoft.AspNet.Web.Optimization" version="1.1.2" targetFramework="net452" />
   <package id="Microsoft.AspNet.WebApi.Client" version="5.2.3" targetFramework="net452" />
   <package id="Microsoft.AspNet.WebApi.Core" version="5.2.3" targetFramework="net452" />
   <package id="Microsoft.AspNet.WebApi.WebHost" version="5.2.3" targetFramework="net452" />  
   <package id="Microsoft.AspNet.WebPages" version="3.1.0" targetFramework="net452" />
   <package id="Microsoft.Data.Edm" version="5.6.0.0" targetFramework="net452" />
   <package id="Microsoft.Data.OData" version="5.6.0.0" targetFramework="net452" />
   <package id="Microsoft.Data.Services.Client" version="5.6.0.0" targetFramework="net452" />
   <package id="Microsoft.Diagnostics.Tracing.EventSource.Redist" version="1.0.26" targetFramework="net452" />
   <package id="Microsoft.Graph" version="1.21.0" targetFramework="net452" />
   <package id="Microsoft.Graph.Core" version="1.19.0" targetFramework="net452" />
   <package id="Microsoft.IdentityModel.Clients.ActiveDirectory" version="5.2.6" targetFramework="net452" />
   <package id="Microsoft.IdentityModel.JsonWebTokens" version="5.3.0" targetFramework="net452" />
   <package id="Microsoft.IdentityModel.Logging" version="5.3.0" targetFramework="net452" />
   <package id="Microsoft.IdentityModel.Protocols" version="5.3.0" targetFramework="net452" />
   <package id="Microsoft.IdentityModel.Protocols.OpenIdConnect" version="5.3.0" targetFramework="net452" />
   <package id="Microsoft.IdentityModel.Protocols.WsFederation" version="5.3.0" targetFramework="net452" />
   <package id="Microsoft.IdentityModel.Tokens" version="5.3.0" targetFramework="net452" />
   <package id="Microsoft.IdentityModel.Tokens.Saml" version="5.3.0" targetFramework="net452" />
   <package id="Microsoft.IdentityModel.Xml" version="5.3.0" targetFramework="net452" />
   <package id="Microsoft.OData.Client" version="6.12.0" targetFramework="net452" />
   <package id="Microsoft.OData.Core" version="6.12.0" targetFramework="net452" />
   <package id="Microsoft.OData.Edm" version="6.12.0" targetFramework="net452" />
   <package id="Microsoft.Owin" version="4.1.0" targetFramework="net452" />
   <package id="Microsoft.Owin.Host.SystemWeb" version="4.0.1" targetFramework="net452" />
   <package id="Microsoft.Owin.Security" version="4.1.0" targetFramework="net452" />
   <package id="Microsoft.Owin.Security.ActiveDirectory" version="4.0.1" targetFramework="net452" />
   <package id="Microsoft.Owin.Security.Cookies" version="4.0.1" targetFramework="net452" />
   <package id="Microsoft.Owin.Security.Jwt" version="4.0.1" targetFramework="net452" />
   <package id="Microsoft.Owin.Security.OAuth" version="4.0.1" targetFramework="net452" />
   <package id="Microsoft.Owin.Security.OpenIdConnect" version="4.1.0" targetFramework="net452" />
   <package id="Microsoft.Spatial" version="6.12.0" targetFramework="net452" />
   <package id="Microsoft.Web.Infrastructure" version="1.0.0.0" targetFramework="net452" />
   <package id="MSBuild.Microsoft.VisualStudio.Web.targets" version="14.0.0.3" targetFramework="net452" />
   <package id="netfx-System.SequentialGuid" version="1.0.0.0" targetFramework="net452" />
   <package id="Newtonsoft.Json" version="10.0.1" targetFramework="net452" />
   <package id="OctoPack" version="3.6.1" targetFramework="net452" />
   <package id="Owin" version="1.0" targetFramework="net452" />
   <package id="Rebar.CacheAdapter.Core" version="1.0.529071" targetFramework="net452" />
   <package id="Rebar.CacheAdapter.MemoryCache" version="1.0.569706" targetFramework="net452" />
   <package id="Rebar.EF.AuditPlugin.DateTimeOffsetSupport" version="3.0.20150222" targetFramework="net452" />
   <package id="Rebar.EF.PluginManager" version="3.0.605577" targetFramework="net452" />
   <package id="Rebar.Scorecard" version="2.0.270888" targetFramework="net452" />
   <package id="Rebar.Telemetry" version="2.0.20141010" targetFramework="net452" />
   <package id="Rebar.Web.HealthCheck" version="2.0.20150212" targetFramework="net452" />
   <package id="Rebar.WebClient" version="2.0.20150831" targetFramework="net452" />
   <package id="Rebar.WebDeploy" version="2.0.569027" targetFramework="net452" />
   <package id="StyleCop.MSBuild" version="4.7.49.1" targetFramework="net452" developmentDependency="true" />
   <package id="System.Buffers" version="4.4.0" targetFramework="net452" />
   <package id="System.Diagnostics.DiagnosticSource" version="4.6.0" targetFramework="net452" />
   <package id="System.IdentityModel.Tokens.Jwt" version="5.3.0" targetFramework="net452" />
   <package id="System.Memory" version="4.5.3" targetFramework="net452" />
   <package id="System.Net.Http" version="4.3.4" targetFramework="net452" />
   <package id="System.Runtime.CompilerServices.Unsafe" version="4.5.2" targetFramework="net452" />
   <package id="System.Spatial" version="5.6.0" targetFramework="net452" />
   <package id="System.ValueTuple" version="4.3.0" targetFramework="net452" />
   <package id="Thinktecture.IdentityModel" version="3.6.1" targetFramework="net452" />
   <package id="Unity" version="4.0.1" targetFramework="net452" />
   <package id="Unity.Interception" version="4.0.1" targetFramework="net452" />
   <package id="WebActivator" version="1.4.4" targetFramework="net452" />
   <package id="WebActivatorEx" version="2.0.6" targetFramework="net452" />
   <package id="WebGrease" version="1.5.2" targetFramework="net452" />
 </packages>

and this is the content of my startup.cs :
app.UseOpenIdConnectAuthentication( new OpenIdConnectAuthenticationOptions { // Sets the ClientId, authority, RedirectUri as obtained from web.config ClientId = clientId, Authority = authority, RedirectUri = redirectUri, // PostLogoutRedirectUri is the page that users will be redirected to after sign-out. In this case, it is using the home page PostLogoutRedirectUri = redirectUri, Scope = OpenIdConnectScope.OpenIdProfile, // ResponseType is set to request the id_token - which contains basic information about the signed-in user ResponseType = OpenIdConnectResponseType.IdToken, SecurityTokenValidator = Microsoft.Graph.GraphApiGroupHelper.TransitiveMemberOf(authority, clientId, clientSecret, adminGroup, hierarchyGroup, memberGroup).TokenHandler, // ValidateIssuer set to false to allow personal and work accounts from any organization to sign in to your application // To only allow users from a single organizations, set ValidateIssuer to true and 'tenant' setting in web.config to the tenant name // To allow users from only a list of specific organizations, set ValidateIssuer to true and use ValidIssuers parameter TokenValidationParameters = new TokenValidationParameters() { ValidateIssuer = true }, // OpenIdConnectAuthenticationNotifications configures OWIN to send notification of failed authentications to OnAuthenticationFailed method Notifications = new OpenIdConnectAuthenticationNotifications { //AuthorizationCodeReceived = OnAuthorizationCodeReceived, AuthenticationFailed = OnAuthenticationFailed } } );

azure-ad-msalazure-ad-adal-deprecation
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Do let me know if you have further questions. If the answer provided was helpful to you, please consider marking it as answer so that others in the community with similar questions can more easily find a solution.

0 Votes 0 ·

1 Answer

MarileeTurscak-MSFT avatar image
0 Votes"
MarileeTurscak-MSFT answered MarileeTurscak-MSFT edited

Hi @BermudezNuezJuanPablo-9415,

I understand that you are hoping to find out which ADAL/MSAL version you are using based on the packages file in your code.

Version:

You appear to be using ADAL v 5.2.6 based on line #29:

 <package id="Microsoft.IdentityModel.Clients.ActiveDirectory" version="5.2.6" targetFramework="net452" />`

I don't see Microsoft.Identity.Client referenced at all there, but ADAL v. 5.2.6 was released on January 16, 2020, and MSAL.NET 4.8.0 was released around the same time.

MSAL .NET release history:

https://github.com/AzureAD/microsoft-authentication-library-for-dotnet/releases

ADAL release history:

https://github.com/AzureAD/azure-activedirectory-library-for-dotnet/releases



If this answer was helpful to you, please remember to "mark as answer" so that others in the community with similar questions can more easily find a solution.


· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

(Edited this post to include the MSAL .NET release history)

0 Votes 0 ·