Ejemplo n.º 1
0
 public IdentitySettings GetRawIdentityData()
 {
     return(new IdentitySettings
     {
         Audiences = new List <string> {
             GetValue("Realm")
         },
         IssuerName = GetValue("IssuerName"),
         CertificateValidationMode = GetValue("CertificateValidationMode"),
         EnforceCertificateValidation = GetValue("EnforceCertificateValidation").Equals("true", StringComparison.CurrentCultureIgnoreCase),
         IssuerAddress = GetValue("StsAddress"),
         Thumbprint = GetValue("Thumbprint"),
         Realm = GetValue("Realm"),
         RequireHttps = GetValue("RequireHttps").Equals("true", StringComparison.CurrentCultureIgnoreCase),
         Certificate = EnvironmentParameters.Where(p => p.Name == "Certificate").Select(p => p.Value).SingleOrDefault(),
         MetadataUrl = GetValue("IssuerMetadataAddress")
     });
 }