Skip to content

Commit

Permalink
Make PostConfigure public
Browse files Browse the repository at this point in the history
- Fixes #1184
  • Loading branch information
AndersAbel committed Apr 13, 2020
1 parent e66e52e commit 701d06b
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion Sustainsys.Saml2.AspNetCore2/PostConfigureSaml2Options.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,11 @@

namespace Sustainsys.Saml2.AspNetCore2
{
class PostConfigureSaml2Options : IPostConfigureOptions<Saml2Options>
/// <summary>
/// Post configure service to set default values in configuration if
/// the startup didn't set them.
/// </summary>
public class PostConfigureSaml2Options : IPostConfigureOptions<Saml2Options>
{
private ILoggerFactory loggerFactory;
private IOptions<AuthenticationOptions> authOptions;
Expand All @@ -29,6 +33,11 @@ class PostConfigureSaml2Options : IPostConfigureOptions<Saml2Options>
this.authOptions = authOptions;
}

/// <summary>
/// Add defaults to configuration.
/// </summary>
/// <param name="name"></param>
/// <param name="options"></param>
public void PostConfigure(string name, Saml2Options options)
{
if(options == null)
Expand Down

0 comments on commit 701d06b

Please sign in to comment.