diff --git a/src/Umbraco.Web.BackOffice/Security/BackOfficeAuthenticationBuilder.cs b/src/Umbraco.Web.BackOffice/Security/BackOfficeAuthenticationBuilder.cs index bc35e9ad44..27b763218e 100644 --- a/src/Umbraco.Web.BackOffice/Security/BackOfficeAuthenticationBuilder.cs +++ b/src/Umbraco.Web.BackOffice/Security/BackOfficeAuthenticationBuilder.cs @@ -45,7 +45,7 @@ namespace Umbraco.Cms.Web.BackOffice.Security Services.AddSingleton(x => new BackOfficeExternalLoginProvider( displayName, authenticationScheme, - x.GetRequiredService>())); + x.GetRequiredService>())); Services.TryAddEnumerable(ServiceDescriptor.Singleton, EnsureBackOfficeScheme>()); return base.AddRemoteScheme(authenticationScheme, displayName, configureOptions); diff --git a/src/Umbraco.Web.BackOffice/Security/BackOfficeExternalLoginProvider.cs b/src/Umbraco.Web.BackOffice/Security/BackOfficeExternalLoginProvider.cs index 42798022b7..07f16734a2 100644 --- a/src/Umbraco.Web.BackOffice/Security/BackOfficeExternalLoginProvider.cs +++ b/src/Umbraco.Web.BackOffice/Security/BackOfficeExternalLoginProvider.cs @@ -8,7 +8,7 @@ namespace Umbraco.Cms.Web.BackOffice.Security /// public class BackOfficeExternalLoginProvider : IEquatable { - public BackOfficeExternalLoginProvider(string name, string authenticationType, IOptions properties) + public BackOfficeExternalLoginProvider(string name, string authenticationType, IOptionsSnapshot properties) { if (properties is null) { @@ -17,7 +17,7 @@ namespace Umbraco.Cms.Web.BackOffice.Security Name = name ?? throw new ArgumentNullException(nameof(name)); AuthenticationType = authenticationType ?? throw new ArgumentNullException(nameof(authenticationType)); - Options = properties.Value; + Options = properties.Get(authenticationType); } public string Name { get; }