diff --git a/uSync.BackOffice/uSyncBackOfficeBuilderExtensions.cs b/uSync.BackOffice/uSyncBackOfficeBuilderExtensions.cs index 8f022444..83f78ddb 100644 --- a/uSync.BackOffice/uSyncBackOfficeBuilderExtensions.cs +++ b/uSync.BackOffice/uSyncBackOfficeBuilderExtensions.cs @@ -3,6 +3,8 @@ using Microsoft.Extensions.Configuration; using Microsoft.Extensions.DependencyInjection; +using OpenIddict.Validation.AspNetCore; + using System; using System.Linq; @@ -246,8 +248,8 @@ private static void CreatePolicies(AuthorizationOptions options, { options.AddPolicy(SyncAuthorizationPolicies.TreeAccessuSync, policy => { - policy.AuthenticationSchemes.Add(backOfficeAuthScheme); - policy.Requirements.Add(new uSyncApplicationRequirement(Constants.Applications.Settings)); + policy.AuthenticationSchemes.Add(OpenIddictValidationAspNetCoreDefaults.AuthenticationScheme); + policy.Requirements.Add(new uSyncApplicationRequirement(Constants.Applications.Settings)); }); } }