title: Getting Twitter Access Secret using DotNetOpenAuth in MVC4
body: <p>I'm creating an app with MVC4 that will authorize users using Twitter and lets them tweet from the app as well. I'm able to get the user authenticated without a problem using the BuiltInOAuthClient.Twitter that is in MVC4. <a href="http://www.asp.net/web-pages/tutorials/security/enabling-login-from-external-sites-in-an-aspnet-web-pages-site" rel="nofollow">http://www.asp.net/web-pages/tutorials/security/enabling-login-from-external-sites-in-an-aspnet-web-pages-site</a></p>
  
  <p>I have the access token, and oauth_verifier, but I need to get the acess_secret back from Twitter as well. <a href="https://dev.twitter.com/docs/auth/implementing-sign-twitter" rel="nofollow">https://dev.twitter.com/docs/auth/implementing-sign-twitter</a></p>
  
  <p>What I'm missing is how to pass the oauth_verifier back to Twitter to get the access secret using OAuthWebSecurity. </p>
  
  <p>Again, I can use Twitter for the login ok, but I need to be able to use twitter as the user as well. I've done this with the TweetSharp library before, but am trying to use DotNetOpenAuth on this project.  </p>
  
  <p>UPDATE: 
  I'm using the OAuthWebSecurity class as described in the first link to manage authentication. OAuthWebSecurity.RegisterClient in the AuthConfig expects a DotNetOpenAuth.AspNet.IAuthenticationClient. You can't swap that out with the TwitterConsumer class as suggested. </p>
  
  <p>I can use the "built in" DotNetOpenAuth authentication piece as described in the first link, OR I can use custom code to do the full authorization, but I'm trying to find a way to do both. </p>
  
  <p>I can do it separately, but then the user is presented with the Twitter dialog twice (once to login and once to authorize). I'm hoping there's a way to use the already wired up authentication piece that uses OAuthWebSecurity but ad the authorization piece as well. </p>