Questions tagged [omniauth]

OmniAuth is a flexible Ruby authentication library that standardizes multi-provider authentication for web applications

OmniAuth is a flexible authentication system for Ruby applications utilizing Rack middleware, such as Rails applications. It supports a large number of external authentication providers, such as Facebook, Google, and Twitter.

2360 questions
8
votes
2 answers

omniauth oauth tokens for gmail are invalid

I'm trying to get an oauth token I can use with gmail_xauth (ruby gem) to look at a user's mail. I first registered my app with google and then set up devise to request access to mail: config.omniauth :google, 'key', 'secret', :scope =>…
8
votes
2 answers

Help Using Devise with the built-in Omniauth Support

I tried to follow https://github.com/plataformatec/devise/wiki/OmniAuth:-Overview, but somehow when I look at the generated routes I only see the callback path, and not the authorization path (and indeed I get the error on the view with the…
krakover
  • 2,989
  • 2
  • 27
  • 29
8
votes
3 answers

OmniAuth - current session not loaded on OpenID callback

I'm using OmniAuth with Rails 3.1.4 and I'm trying to allow already authenticated users to associate multiple OpenID providers with their account. As an unauthenticated user, signing in with OpenID works fine. As an authenticated user, when I try to…
Andrei Serdeliuc ॐ
  • 5,828
  • 5
  • 39
  • 66
8
votes
3 answers

Rails: How do I write a spec for a route that does a redirect?

I am using Omniauth in my Rails project, and I'd like to hide "/auth/facebook" behind a "/login" route. In fact, I wrote a route: match "/login", :to => redirect("/auth/facebook"), :as => :login and this actually works, i.e. a link to login_path…
winstonyw
  • 108
  • 1
  • 7
8
votes
2 answers

Frequently our GitLab is getting slow

Frequently last few days onwards our GitLab(CE) running slowly. We have a hook for the CI with Jenkins. We had installed the GitLab by OmniAuth. I don't have any more ideas regarding this because we didn`t do anything new in our instances. We are…
user6874415
8
votes
1 answer

devise sign_in_and_redirect never seems to work

I would like it, if after a user logs in, that it automatically redirect to their previous location, but this never seems to happen, it always redirects back to the root location. From reading the docs on devise for this it seems this functionality…
holden
  • 13,471
  • 22
  • 98
  • 160
8
votes
2 answers

Has anyone used omniauth with rails 2.3.8?

I am new to Rails and I am trying to use omniauth with rails 2.3.8. I couldn't find any tutorial for this version of rails so I referred to http://blog.railsrumble.com/blog/2010/10/08/intridea-omniauth. I added the initializer as…
Govind N
  • 153
  • 2
  • 7
8
votes
1 answer

Rails 4 - Devise Omniauth (multiple strategies)

I'm trying to make an app in Rails 4. I have been trying for the last 3 years (except for 10 days), to get devise to work. I'm trying to follow this tutorial:…
Mel
  • 2,481
  • 26
  • 113
  • 273
8
votes
3 answers

get first_name and last_name fields from facebook omniauth

I am now implementing omniauth feature into my app. Everything works fine except that i cant get the first and last name from the facebook. Here is my model code. def self.from_omniauth(auth) user = User.where(email: auth.info.email).first …
Abhilash
  • 2,864
  • 3
  • 33
  • 67
8
votes
2 answers

LinkedIn OAuth returns unclear error

In response to an oauth request, LinkedIn redirects user back to my server with the following parameters: GET…
Tal
  • 7,827
  • 6
  • 38
  • 61
8
votes
2 answers

Rails 4 + Omniauth + Devise: Logout link not working

I'm using Omniauth as my only method for signing into my Rails application. The issue is: When a user clicks "Logout", the page reloads and the Logout link is still there (despite if user_signed_in? logic wrapping it). Which leads me to believe…
beaconhill
  • 441
  • 6
  • 28
8
votes
1 answer

Adding a omniauth-gem to a omnibus GitLab installation

I am not very experienced with ruby in general and trying to install a new omniauth provider in the GitLab Community Edition. I used the omnibus package to install it on Ubuntu 14.04. The goal is to authenticate GitLab against a Jasig CAS According…
mailman
  • 149
  • 1
  • 10
8
votes
1 answer

How to renew/prolong Facebook access token with Koala Gem from SERVER (!) with NO users interaction at all

My situation and what i have: Rails app (last version of Rails) Koala gem (last version) 1 (one) Facebook user (for example - it's me), and that is all, no more users (!) Page on a website without any FB login forms/similar stuff Now situation: I…
Jolibi
  • 81
  • 3
8
votes
2 answers

How to override gem dependency?

I have 2 gems that depend on conflicting versions of hashie (one requires ~> 1.2.0 and the other requires 3.3.1): Bundler could not find compatible versions for gem "hashie": In Gemfile: restforce (>= 0) ruby depends on hashie (~> 1.2.0)…
8
votes
4 answers

Rails - Using omniauth-saml with multiple IDPs

What I'm trying to have in the end is the ability to login normally with devise OR choose to login with SAML. So I read that if I integrate omniauth and saml, then omniauth and devise, I could achieve that. My problem is, that I have different IDPs…
user1069624
  • 561
  • 2
  • 9
  • 24