Custom OmniAuth Configuration Ruby on Rails
<p>Following this tutorial here. </p>

<p>I'm having an issue finding any information on what I am trying to accomplish. </p>

<p>I currently have my rails app set up with custom user authentication. Also  users have a role string within the database which is used to determine what they see and can do within application. </p>

<pre><code>      ROLES = %w[non-profit company person]            

    def role_symbols
    [role.to_sym]
     end
</code></pre>

<p>Within the sign up form regular the user is able to enter , Name, email address, username, and password. And also have to select their user role.</p>

<pre><code>  Signup.html.erb 
               &lt;h3&gt;Choose Account Type                     &lt;/h3&gt;
  &lt;%= f.input :role, :collection =&gt; User::ROLES.map { |s| [s.humanize, s] }, required: true, label: false, input_html: { class: 'input-md' } %&gt;
</code></pre>

<p>My goal is to have my sign up form with twitter and facebook omniauth. When they click create account with twitter or facebook I would like the user to be able to select their role. The current omniauth configuration I'm a little confused on how to add a custom selection. Is there anyway to make sure a user selects a role before their account is created by linking twitter or facebook accounts.</p>

<p>Any help would be amazing thank you. </p>