Skip to content

Commit

Permalink
Fix Security setting reading (#20)
Browse files Browse the repository at this point in the history
Co-authored-by: Smitha Saligrama <[email protected]>
  • Loading branch information
smithago and smithago authored Apr 27, 2020
1 parent 7bcefd5 commit 824da1a
Showing 1 changed file with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -184,20 +184,20 @@ public override void Load()
StringComparer.OrdinalIgnoreCase);

// add properties related to the development identity provider.
if (bool.TryParse(_securityEnabledKey, out bool securityEnabledValue)
if (bool.TryParse(_existingConfiguration[_securityEnabledKey], out bool securityEnabledValue)
&& securityEnabledValue == true)
{
Data[DevelopmentIdpEnabledKey] = bool.TrueString;
}

if (string.IsNullOrWhiteSpace(_existingConfiguration[_audienceKey]))
{
Data[_audienceKey] = Config.Provider.Audience;
}
if (string.IsNullOrWhiteSpace(_existingConfiguration[_audienceKey]))
{
Data[_audienceKey] = Config.Provider.Audience;
}

if (string.IsNullOrWhiteSpace(_existingConfiguration[_authorityKey]))
{
Data[_authorityKey] = GetAuthority();
if (string.IsNullOrWhiteSpace(_existingConfiguration[_authorityKey]))
{
Data[_authorityKey] = GetAuthority();
}
}
}

Expand Down

0 comments on commit 824da1a

Please sign in to comment.