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
11
votes
2 answers

Omniauth Rspec testing problem

I followed the rails cast of omniauth to create authentication for twitter ( http://railscasts.com/episodes/235-omniauth-part-1?view=comments ). It works fine in development but I can't get rspec to detect that I have created the authentication. …
Whereisccguys
  • 331
  • 4
  • 15
11
votes
2 answers

omniauth vs. oauth-plugin

I'm trying to figure out the differences between omniauth (https://github.com/intridea/omniauth) and oauth-plugin - (https://github.com/pelle/oauth-plugin) I'm simply looking for a way to allow my users to authenticate with (Twitter, Facebook, etc)…
Jim Jones
  • 2,767
  • 4
  • 33
  • 39
11
votes
5 answers

Latest omniauth-facebook gem breaks devise

ruby '2.6.3' gem 'rails', '~> 6.0.2', '>= 6.0.2.1' I'm using the latest omniauth-facebook and devise together Gemfile: gem 'devise' gem 'omniauth-facebook' Getting this error when starting the…
jco40
  • 297
  • 3
  • 9
11
votes
3 answers

Creating Signature and Nonce for OAuth (Ruby)

I'm looking to access SmugMug's API from my application to grab users' albums and images (the users have been authenticated via ruby's OmniAuth). According to SmugMug's OAuth API, OAuth requires six parameters. I can get the token with OmniAuth, and…
kmurph79
  • 1,192
  • 3
  • 13
  • 28
11
votes
3 answers

Create named routes for OmniAuth in Rails 3

After having watched Ryan's excellent Railcast Simple OmniAuth, I've managed to implement authentication in my app. Everything is working fine, but in my view I have links that look like this: <%= link_to 'Sign in with Twitter', '/signin/twitter'…
Daniel Perez Alvarez
  • 6,570
  • 5
  • 28
  • 27
11
votes
4 answers

Instagram OAuth Login returning "Matching code was not found or was already used"

So I have a web app that login to Instagram. Works fine for months. No code changes, and suddenly I'm getting {"code": 400, "error_type": "OAuthException", "error_message": "Matching code was not found or was already used."} Logging out of…
choonkeat
  • 5,557
  • 2
  • 26
  • 19
11
votes
2 answers

Rails, Devise & Omniauth - problems with setup

I am trying (again) to set up authentications with Rails 4, devise and omniauth. I tried to follow the example in this post: Rails 4, Devise, Omniauth (with multiple providers) I have these gems installed: gem 'devise' gem…
Mel
  • 2,481
  • 26
  • 113
  • 273
11
votes
1 answer

Configuring GitLab to use SAML OmniAuth with an Active Directory IdP

I am in the process of altering an existing GitLab installation to use SAML rather than LDAP for authentication. At this point, users can successfully sign into the Web application using the 'Sign in with Saml' button. I am unclear, however, about…
jjw
  • 111
  • 7
11
votes
2 answers

GitLab disable regular username password login and only allow OmniAuth login

I have gitlab all set up and ready with omniauth and I was wondering if it is possible to disable default authentication with password and username entirely and to use only omniauth (in our case google login). What I'm hoping to achieve is enhanced…
Qiong Wu
  • 1,504
  • 1
  • 15
  • 27
11
votes
3 answers

local variable or method `config' for main:Object (NameError)

I'm following this post for integrating Omniauth Twitter + Devise http://sourcey.com/rails-4-omniauth-using-devise-with-twitter-facebook-and-linkedin/ and I have encounter an issue that is blocking me to start my rails app. …
malditojavi
  • 1,074
  • 2
  • 14
  • 28
11
votes
3 answers

Use omniauth-facebook when app id and app secret are different for each request?

The omniauth-facebook README mentions how to set it up in an initializer and how to set options like scope per request only. I wonder if it is possible to set app id and app secret per request as well.
powerboy
  • 10,523
  • 20
  • 63
  • 93
11
votes
1 answer

How to logout facebook - using code in rails application (Ruby on Rails Omniauth)

I tried to add more than one twitter and facebook accounts from my page via omniauth in rails. Twitter working fine using force_login parameter. But, facebook not supporting this. i can add only one facebook account using /auth/facebook. After i…
suresh gopal
  • 3,138
  • 6
  • 27
  • 58
10
votes
2 answers

Devise with omniauth-facebook "Invalid Credentials"

I'm trying to get Facebook authentication working with Devise through omniauth-facebook, I've followed the instructions here: https://github.com/plataformatec/devise/wiki/OmniAuth%3a-Overview When I follow the login with Facebook link I am…
TalkingQuickly
  • 538
  • 5
  • 15
10
votes
3 answers

How to get Koala to play nicely with Omniauth?

I'm trying to get Koala to work with Omniauth. A User model logs in with Facebook using Omniauth and I want to use Koala as a client to pull the list of a user's friends that are using the app. I don't seem to be saving the tokens…
Simpleton
  • 6,285
  • 11
  • 53
  • 87
10
votes
1 answer

Rails API for fb login with Ionic

I want to build a rails api for fb login using, ionic framework. Till now I've successfully created a web base application and it's successfully authenticating with Facebook. Now I want to do the same but with ionic based app. Questions? Is this…