From 4e644ef41c5019bed379cc7662fe031fa216009a Mon Sep 17 00:00:00 2001 From: Hao Kung Date: Wed, 5 Jul 2017 14:30:45 -0700 Subject: [PATCH] React to Auth --- .../MusicStore/ForTesting/Mocks/StartupOpenIdConnectTesting.cs | 2 +- samples/MusicStore/StartupOpenIdConnect.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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]";