简体   繁体   中英

Is ADAL used in ASP Net Core with OpenIdConnect

I have an old web application in ASP .Net core 2.1 which is authenticating users against Azure AD.

Give the fact that Microsoft will end support for ADAL, recommending to move to MSAL, I need to figure out if my application will still work, and if is using ADAL

Does anyone know if ADAL is used in .AddOpenIdConnect Version=2.1.2.0 ?

// Microsoft.AspNetCore.Authentication.OpenIdConnect, Version=2.1.2.0

              .AddOpenIdConnect(option =>
              {
                  option.ClientId = ClientId;
                  option.ClientSecret = ClientSecret;
                  option.Authority = $"https://login.microsoftonline.com/{Tenant}";
                  option.Resource = "https://graph.windows.net";
                  option.SignedOutRedirectUri = SignedOutRedirectUri;
                  option.CorrelationCookie.Name = "cookie name";
                  option.NonceCookie.Name = "nonce name";
                  option.NonceCookie.SecurePolicy = CookieSecurePolicy.Always;                
                  option.CorrelationCookie.SecurePolicy = CookieSecurePolicy.Always;
                  ....
              }

Yes, your resource URL https://graph.windows.net points to the token endpoint for Azure AD Graph (ADAL)

The token endpoint for MS Graph (MSAL) is https://graph.microsoft.com

Here is extended information about planning your app migration

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM