From 0c6a805405f8d572b61f9bdc489a86d8825483ff Mon Sep 17 00:00:00 2001 From: Chris R Date: Fri, 22 Jan 2016 16:11:47 -0800 Subject: [PATCH] #632 Save twitters access token secret as a claim. --- .../TwitterHandler.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Microsoft.AspNetCore.Authentication.Twitter/TwitterHandler.cs b/src/Microsoft.AspNetCore.Authentication.Twitter/TwitterHandler.cs index a4a1a08020..3b66f3128f 100644 --- a/src/Microsoft.AspNetCore.Authentication.Twitter/TwitterHandler.cs +++ b/src/Microsoft.AspNetCore.Authentication.Twitter/TwitterHandler.cs @@ -91,6 +91,7 @@ namespace Microsoft.AspNetCore.Authentication.Twitter if (Options.SaveTokensAsClaims) { identity.AddClaim(new Claim("access_token", accessToken.Token, ClaimValueTypes.String, Options.ClaimsIssuer)); + identity.AddClaim(new Claim("access_token_secret", accessToken.TokenSecret, ClaimValueTypes.String, Options.ClaimsIssuer)); } return AuthenticateResult.Success(await CreateTicketAsync(identity, properties, accessToken));