React to Auth
This commit is contained in:
parent
354facf4ad
commit
4e644ef41c
|
|
@ -62,7 +62,7 @@ namespace MusicStore
|
||||||
.AddDefaultTokenProviders();
|
.AddDefaultTokenProviders();
|
||||||
|
|
||||||
// Create an Azure Active directory application and copy paste the following
|
// 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.Authority = "https://login.windows.net/[tenantName].onmicrosoft.com";
|
||||||
options.ClientId = "c99497aa-3ee2-4707-b8a8-c33f51323fef";
|
options.ClientId = "c99497aa-3ee2-4707-b8a8-c33f51323fef";
|
||||||
|
|
|
||||||
|
|
@ -106,7 +106,7 @@ namespace MusicStore
|
||||||
});
|
});
|
||||||
|
|
||||||
// Create an Azure Active directory application and copy paste the following
|
// 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.Authority = "https://login.windows.net/[tenantName].onmicrosoft.com";
|
||||||
options.ClientId = "[ClientId]";
|
options.ClientId = "[ClientId]";
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue