diff --git a/samples/MusicStore/ForTesting/Mocks/StartupOpenIdConnectTesting.cs b/samples/MusicStore/ForTesting/Mocks/StartupOpenIdConnectTesting.cs index 93046c53d4..9f83bdd782 100644 --- a/samples/MusicStore/ForTesting/Mocks/StartupOpenIdConnectTesting.cs +++ b/samples/MusicStore/ForTesting/Mocks/StartupOpenIdConnectTesting.cs @@ -62,7 +62,7 @@ namespace MusicStore .AddDefaultTokenProviders(); // Create an Azure Active directory application and copy paste the following - services.AddOpenIdConnectAuthentication(options => + services.AddAuthentication().AddOpenIdConnect(options => { options.Authority = "https://login.windows.net/[tenantName].onmicrosoft.com"; options.ClientId = "c99497aa-3ee2-4707-b8a8-c33f51323fef"; diff --git a/samples/MusicStore/StartupOpenIdConnect.cs b/samples/MusicStore/StartupOpenIdConnect.cs index 649d436126..cb1a15aa87 100644 --- a/samples/MusicStore/StartupOpenIdConnect.cs +++ b/samples/MusicStore/StartupOpenIdConnect.cs @@ -106,7 +106,7 @@ namespace MusicStore }); // Create an Azure Active directory application and copy paste the following - services.AddOpenIdConnectAuthentication(options => + services.AddAuthentication().AddOpenIdConnect(options => { options.Authority = "https://login.windows.net/[tenantName].onmicrosoft.com"; options.ClientId = "[ClientId]";