title: Simple OmniAuth-Twitter failing to create new user because of validation
body: <p>I am loosely following Railscasts Simple OmniAuth <a href="http://railscasts.com/episodes/241-simple-omniauth" rel="nofollow">http://railscasts.com/episodes/241-simple-omniauth</a> to create my Twitter login. When I try to sign in and create a new user through twitter, I get the following message:</p>
  
  <pre><code>Validation failed: Password can't be blank, Name is not valid., Email can't be blank, Email is not valid.
  </code></pre>
  
  <p>If I hit the refresh button, I get the following error:</p>
  
  <pre><code>OAuth::Unauthorized 401 Unauthorized
  </code></pre>
  
  <p>I've already set my callback URL to <code>http://127.0.0.1:3000/auth/twitter/callback</code> but I still get that message. I'm testing on localhost.</p>
  
  <p>I modeled my users after Hartl's railstutorial <a href="http://ruby.railstutorial.org/ruby-on-rails-tutorial-book" rel="nofollow">http://ruby.railstutorial.org/ruby-on-rails-tutorial-book</a> and my website project requires that users have those fields filled in.</p>
  
  <p>Unlike the railscasts, I created a new method to handle omniauth logins:</p>
  
  <p>sessions_controller.rb</p>
  
  <pre><code>def omniauth_create
    auth = request.env["omniauth.auth"]
    user = User.find_by_provider_and_uid(auth["provider"], auth["uid"]) || 
           User.create_with_omniauth(auth)
    session[:user_id] = user.id
    redirect_to user
  end
  </code></pre>
  
  <p>user.rb</p>
  
  <pre><code>def self.create_with_omniauth(auth)
    create! do |user|
      user.provider = auth["provider"]
      user.uid = auth["uid"]
      user.name = auth["info"]["name"]
    end
  end
  </code></pre>
  
  <p><strong>Question: How do I bypass the validations?</strong></p>
  
  <p>So far, I've tried using <code>skip_before_filter :authenticate, :only =&gt; [:omniauth_create]</code>, but that didn't work.</p>
  
  <p>Thanks.</p>