Skip to content

Commit a5cf16d

Browse files
author
Daniele Giallonardo
committed
Fix configuration section issue
#85
1 parent 093efa2 commit a5cf16d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/SPID.AspNetCore.Authentication/Helpers/OptionsHelper.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ internal static SpidConfiguration CreateFromConfiguration(IConfiguration configu
8080
options.AddIdentityProviders(identityProviders);
8181

8282
var certificateSection = section.GetSection("Certificate");
83-
if (certificateSection != null)
83+
if (certificateSection.Exists())
8484
{
8585
var certificateSource = certificateSection.GetValue<string>("Source");
8686
if (certificateSource.Equals("Store", System.StringComparison.OrdinalIgnoreCase))

0 commit comments

Comments
 (0)