From e3fdd5a4f8cd3f061a2a62b98fc7c47044323d29 Mon Sep 17 00:00:00 2001 From: Anders Abel Date: Mon, 13 Apr 2020 15:54:09 +0200 Subject: [PATCH] Make PostConfigure public - Fixes #1184 --- .../PostConfigureSaml2Options.cs | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/Sustainsys.Saml2.AspNetCore2/PostConfigureSaml2Options.cs b/Sustainsys.Saml2.AspNetCore2/PostConfigureSaml2Options.cs index ccbadeacb..dba253252 100644 --- a/Sustainsys.Saml2.AspNetCore2/PostConfigureSaml2Options.cs +++ b/Sustainsys.Saml2.AspNetCore2/PostConfigureSaml2Options.cs @@ -11,7 +11,11 @@ namespace Sustainsys.Saml2.AspNetCore2 { - class PostConfigureSaml2Options : IPostConfigureOptions + /// + /// Post configure service to set default values in configuration if + /// the startup didn't set them. + /// + public class PostConfigureSaml2Options : IPostConfigureOptions { private ILoggerFactory loggerFactory; private IOptions authOptions; @@ -29,6 +33,11 @@ public PostConfigureSaml2Options( this.authOptions = authOptions; } + /// + /// Add defaults to configuration. + /// + /// + /// public void PostConfigure(string name, Saml2Options options) { if(options == null)