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
0
votes
1 answer

Error when testing devise with omniauth and rspec

I wrote this simple spec : it "redirects to dashboard upon login" do user = Factory(:user) visit "/users/sign_in why am I getting this error? Failure/Error: visit "/users/sign_in" ActionView::Template::Error: undefined method…
Gady
  • 1,514
  • 2
  • 16
  • 32
0
votes
0 answers

Rails github omniauth: Could not authenticate you from GitHub because "AUTHENTICITY ERROR"

I'm using Devise gem, omniauth_github and also included omniauth-rails_csrf_protection by suggestions of answers I found here but still get the issue. I was receiving the Not found. Authentication passthru. and then forced the request to the…
0
votes
1 answer

Omniauth2 Google Record Invalid Error using Devise

I'm using Devise with Google Omniauth, but I keep getting User Record Invalid error: I only have this validation in my User model: validates :email, presence: true, uniqueness: true User model devise :omniauthable, omniauth_providers:…
Gibson
  • 2,055
  • 2
  • 23
  • 48
0
votes
1 answer

What is the meaning of the error for Facebook SSO callback in rails

I am trying to implement facebook sso in a project without any gem. After callback it is throwing the below error. The API calls The errors My code is Gemfile: gem 'devise' gem 'devise_invitable', '~> 2.0.0' gem 'devise-jwt' gem…
0
votes
0 answers

Omniauth facebook implementaion in rails 7

Here is my session controller omniauth method def omniauth user=User.find_or_create_by(uid: request.env['omniauth.auth'][:uid], provider: request.env['omniauth.auth'][:provider]) do |u| …
0
votes
1 answer

ClassLink Devise OmniAuth::Strategies::OAuth2::CallbackError, csrf_detected

I've looked through various similar issues and responses but to no avail. Sorry if this is obvious but OAuth is not my area of expertise. I'm running Rails 5.2 with Ruby 2.74 and Devise. I have SSO set up with Facebook and it works fine. I'm…
mpipkorn
  • 153
  • 2
  • 9
0
votes
1 answer

How to use the omniauth gem to set up oauth access to the Power BI API

We have a Ruby on Rails application and we use the Omniauth gem to set up OAuth access for our users to several APIs. The Microsoft Graph API is one of these. Now we want to add the Microsoft Power BI API. We usually use a Omniauth "plugin" gem…
Bob Groeneveld
  • 903
  • 1
  • 9
  • 19
0
votes
1 answer

Omniauth issues in rails 3.1.0

I have followed a screen cast form ryan bates railscast and every thing is working fine except when i change my methods like as follows: from def create omniauth = request.env["omniauth.auth"] …
Uchenna
  • 4,059
  • 6
  • 40
  • 73
0
votes
0 answers

Ominauth broke my ruby on rails installation

After adding the gem ominauth(and ominauth-facebook) to my gemfile, I get this error when lunching my project with docker : bundler: failed to load command: rails (/usr/local/bundle/bin/rails) Bundler::GitError:…
Dylan
  • 1
  • 1
0
votes
1 answer

What's this error that occurs when I attempt to install the omnisocial gem?

When I run bundle install after adding the omnisocial gem to my gem file, I get this when I have in fact already installed the latest version of the oa-core gem: Bundler could not find compatible versions for gem "oa-core": In Gemfile: …
Tony
  • 981
  • 5
  • 16
  • 30
0
votes
1 answer

Omniauth not working well for me in rails 3.1.0rc8

I am using omniauth for twitter authentication and any time i try localhost:3000/auth/twittet i get the following error OAuth::Unauthorized 401 Unauthorized pls any ideas to this issue cos i cant get it right. I have omniauth in my gem file and…
Uchenna
  • 4,059
  • 6
  • 40
  • 73
0
votes
1 answer

Microsoft OAuth parsing state parameter as string, but return a hash

I'm using the Microsoft identity platform and OAuth 2.0 authorization code flow to authorize user information from Microsoft Azure. In my Ruby code I parse the state parameter to microsoft: config.omniauth :azure_oauth2, client_id: "xxxxxxxxxxxx",…
Dr.Black
  • 13
  • 1
0
votes
1 answer

Devise with Omniauth for facebook authentication

I am running ruby 1.9.2p18, Devise (1.3.4), Rails (3.0.4) and Omniauth (0.2.6). Currently I have my webpage doing authentication with Devise, and it works fine. I am trying to also add facebook authentication to it. I followed the instruction from…
Matilda
  • 1,708
  • 3
  • 25
  • 33
0
votes
1 answer

How to sign in with GitHub in Heroku application?

I want to sign in with GitHub on my Heroku application. How to do that?
0
votes
1 answer

Rails Omniauth google_oauth2 for admin.directory.user.readonly scope

There is my settings in omniauth.rb: provider :google_oauth2, ENV['GOOGLE_CLIENT_ID'], ENV['GOOGLE_CLIENT_SECRET'], { scope: 'https://www.googleapis.com/auth/admin.directory.user.readonly', provider_ignores_state: true, …
Kim K
  • 39
  • 5
1 2 3
99
100