Did you ever get this figured out?
On Sunday, January 12, 2014 1:07:13 PM UTC-8, Chris Cowley wrote:
>
> I am probably being a little simple here and/or my Google-fu is weak
> today. I am trying to configure Twitter auth for my nice shiney new Gitlab
> install, but it is failing at the last hurdle.
>
> I suspect my problem is in the Callback URL. When I click the twitter auth
> button, it goes of to Twitter and authenticates me. On return to my gitlab
> URL I get an error 500. In my Twitter App my callback url is just the base
> url of my installation. I've spent the last hour trying to find what that
> should be, but I have come out empty handed. Like I said, my Google-fu is
> weak today.
>
> My config.yml:
> omniauth:
> enabled: true
> allow_single_sign_on: true
> block_auto_created_users: true
>
> providers:
> - { name: 'twitter', app_id: '<my apps Consumer key>',
> app_secret: '<my apps Consumer secret>'}
>
>
> Logs:
> Completed 500 Internal Server Error in 9ms
>
> NoMethodError (undefined method `match' for nil:NilClass):
> lib/gitlab/oauth/user.rb:61:in `username'
> lib/gitlab/oauth/user.rb:24:in `create'
> app/controllers/omniauth_callbacks_controller.rb:41:in `handle_omniauth'
> app/controllers/omniauth_callbacks_controller.rb:4:in `block (2 levels)
> in <class:OmniauthCallbacksController>'
> app/controllers/application_controller.rb:57:in
> `set_current_user_for_thread'
>
--
You received this message because you are subscribed to the Google Groups
"GitLab" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.