Ejemplo n.º 1
0
        public async Task <IAuthenticatedUser> ValidateAuthAsync(string authorizationId, string oauthVerifier)
        {
            var twitterAuth = await FindAndDeleteAsync(authorizationId);

            if (string.IsNullOrEmpty(oauthVerifier))
            {
                return(null);
            }

            return(_twitterClient.GetAuthenticatedUser(oauthVerifier, twitterAuth.AuthorizationKey, twitterAuth.AuthorizationSecret));
        }