Created
October 20, 2015 13:56
-
-
Save jz5/940b4a6fca07200fe8f7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
app.UseTwitterAuthentication( | |
New TwitterAuthenticationOptions With { | |
.ConsumerKey = "xxx", | |
.ConsumerSecret = "xxx", | |
.Provider = New TwitterAuthenticationProvider With { | |
.OnAuthenticated = Async Function(context) | |
context.Identity.AddClaim(New Claim("urn:tokens:twitter:accesstoken", context.AccessToken)) | |
context.Identity.AddClaim(New Claim("urn:tokens:twitter:accesstokensecret", context.AccessTokenSecret)) | |
End Function | |
}, | |
.BackchannelCertificateValidator = New CertificateSubjectKeyIdentifierValidator(New String() { | |
"A5EF0B11CEC04103A34A659048B21CE0572D7D47", | |
"0D445C165344C1827E1D20AB25F40163D8BE79A5", | |
"7FD365A7C2DDECBBF03009F34339FA02AF333133", | |
"39A55D933676616E73A761DFA16A7E59CDE66FAD", | |
"4eb6d578499b1ccf5f581ead56be3d9b6744a5e5", | |
"5168FF90AF0207753CCCD9656462A212B859723B", | |
"B13EC36903F8BF4701D498261A0802EF63642BC3"}) | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment