From 403e0c2e6912b0d40909154e8d486c9b45d0979c Mon Sep 17 00:00:00 2001 From: bruce ng Date: Thu, 12 Oct 2023 10:46:43 +0700 Subject: [PATCH] Enable preview tokens in appsettings.json --- samples/musicfestival-backend-dotnet/Startup.cs | 5 +---- samples/musicfestival-backend-dotnet/appsettings.json | 3 ++- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/samples/musicfestival-backend-dotnet/Startup.cs b/samples/musicfestival-backend-dotnet/Startup.cs index e332e55..73db0d0 100644 --- a/samples/musicfestival-backend-dotnet/Startup.cs +++ b/samples/musicfestival-backend-dotnet/Startup.cs @@ -133,10 +133,7 @@ public void ConfigureServices(IServiceCollection services) o.IncludeNumericContentIdentifier = true; }); - services.AddContentGraph(OpenIDConnectOptionsDefaults.AuthenticationScheme, options => - { - options.EnablePreviewTokens = true; - }); + services.AddContentGraph(OpenIDConnectOptionsDefaults.AuthenticationScheme); services.AddHostedService(); } diff --git a/samples/musicfestival-backend-dotnet/appsettings.json b/samples/musicfestival-backend-dotnet/appsettings.json index 74272b4..4aa1da6 100644 --- a/samples/musicfestival-backend-dotnet/appsettings.json +++ b/samples/musicfestival-backend-dotnet/appsettings.json @@ -17,7 +17,8 @@ "SingleKey": "", "AllowSendingLog": "true", "ContentVersionSyncMode": "All", - "SyncReferencingContents": "true" + "SyncReferencingContents": "true", + "EnablePreviewTokens": "true" } }, "FRONT_END_URI": ""