Skip to content

Commit 54cfdb5

Browse files
authored
Enable preview tokens in appsettings.json (#38)
1 parent bcd5d1e commit 54cfdb5

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

samples/musicfestival-backend-dotnet/Startup.cs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -133,10 +133,7 @@ public void ConfigureServices(IServiceCollection services)
133133
o.IncludeNumericContentIdentifier = true;
134134
});
135135

136-
services.AddContentGraph(OpenIDConnectOptionsDefaults.AuthenticationScheme, options =>
137-
{
138-
options.EnablePreviewTokens = true;
139-
});
136+
services.AddContentGraph(OpenIDConnectOptionsDefaults.AuthenticationScheme);
140137
services.AddHostedService<ProvisionDatabase>();
141138
}
142139

samples/musicfestival-backend-dotnet/appsettings.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@
1717
"SingleKey": "",
1818
"AllowSendingLog": "true",
1919
"ContentVersionSyncMode": "All",
20-
"SyncReferencingContents": "true"
20+
"SyncReferencingContents": "true",
21+
"EnablePreviewTokens": "true"
2122
}
2223
},
2324
"FRONT_END_URI": ""

0 commit comments

Comments
 (0)