Skip to content

Commit 12dd701

Browse files
committed
Added BackchannelCertificateValidator for twitter login.
1 parent fea7f8f commit 12dd701

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

src/EventCloud.Web/App_Start/Startup.cs

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,19 @@ private static TwitterAuthenticationOptions CreateTwitterAuthOptions()
6565
return new TwitterAuthenticationOptions
6666
{
6767
ConsumerKey = ConfigurationManager.AppSettings["ExternalAuth.Twitter.ConsumerKey"],
68-
ConsumerSecret = ConfigurationManager.AppSettings["ExternalAuth.Twitter.ConsumerSecret"]
68+
ConsumerSecret = ConfigurationManager.AppSettings["ExternalAuth.Twitter.ConsumerSecret"],
69+
BackchannelCertificateValidator =
70+
new Microsoft.Owin.Security.CertificateSubjectKeyIdentifierValidator(new[]
71+
{
72+
"A5EF0B11CEC04103A34A659048B21CE0572D7D47", // VeriSign Class 3 Secure Server CA - G2
73+
"0D445C165344C1827E1D20AB25F40163D8BE79A5", // VeriSign Class 3 Secure Server CA - G3
74+
"7FD365A7C2DDECBBF03009F34339FA02AF333133", // VeriSign Class 3 Public Primary Certification Authority - G5
75+
"39A55D933676616E73A761DFA16A7E59CDE66FAD", // Symantec Class 3 Secure Server CA - G4
76+
"4eb6d578499b1ccf5f581ead56be3d9b6744a5e5", // VeriSign Class 3 Primary CA - G5
77+
"5168FF90AF0207753CCCD9656462A212B859723B", // DigiCert SHA2 High Assurance Server C‎A
78+
"B13EC36903F8BF4701D498261A0802EF63642BC3", // DigiCert High Assurance EV Root CA
79+
"add53f6680fe66e383cbac3e60922e3b4c412bed" //Symantec Class 3 EV SSL CA - G3
80+
})
6981
};
7082
}
7183

0 commit comments

Comments
 (0)