2,351 questions
2
votes
0
answers
172
views
Expo SDK 53 broke Google Authentication
Everything was working fine on Expo SDK 51. But since I updated to SDK 53, Google Authentication cannot redirect me back to the application - I keep staying in Web View browser, where Google main page ...
1
vote
0
answers
115
views
Using omniauth for SSO and offline_access with Devise in Rails 8
I have a Rails 8 application where I'm currently using Omniauth + Devise to handle SSO with Microsoft.
I also want to allow a logged-in user to perform a separate authorization of a Microsoft app ...
0
votes
0
answers
72
views
Rspec request test with omniauth doesn't call destroy method when sign out is called
I have a rails 6.1.7 project with omniauth + devise and a custom openid connect server that I'm connecting to.
I'm trying to write a rspec request test for the log out feature with some logic in the ...
0
votes
1
answer
108
views
React-native FBSDK with rails omniauth-facebook 6 years later
I am implementing Facebook login in expo react native app using react-native-fbsdk-next library.
Through the react library I am able to obtain access token along with profile information such as name, ...
2
votes
2
answers
514
views
Linkedin Oauth In Ruby on Rails is Not Logging In Every Few Times
I have been developing an app that is using new Linkedin OpenID login feature. The thing is that it works, but it works most of the time. Every few times, (3-10, quite random) it doesn't log you in ...
1
vote
0
answers
135
views
Rails 7: OmniAuth Route Not Recognized alongside Devise
I'm facing an issue integrating OmniAuth independently alongside Devise in a Rails 7 app. Devise with OmniAuth for user sign-in works perfectly. However, I am trying to enable connections to other ...
0
votes
0
answers
331
views
Using session cookie with same site strict without breaking OAuth
I have a Rails app that has two broad flows, one is the Admin login and another is the Customer Web. I want to make the session cookie use the same_site: strict option as the application has sensitive ...
1
vote
0
answers
96
views
Devise with only Omniauth: how only to use login page of the provider
My application is implemented with Devise and local database authentication. I am replacing it by omniauth provider. By keeping devise (to limit too many changes).
So, in the app/views/devise/...
0
votes
1
answer
123
views
Rails Validations with oauth2 and devise
i have a validation on the create and save methods for the user model in rails with devise, but i have no clue as to why user instance is created even if promo code is nil and the errors that should ...
1
vote
0
answers
258
views
Authentication failure! undefined method `values_at' for nil:NilClass: NoMethodError
I have rails 5 and ruby 2.7.
I want to integrate github login on my system
I have installed
gem 'devise'
gem 'omniauth-github'
gem "omniauth-rails_csrf_protection"
I did github config ...
0
votes
0
answers
54
views
How to resolve undefined method error for user_facebook_omniauth_authorize_path in Devise with Omniauth integration
How to resolve a NameError for Omniauth paths in Rails view?
I'm currently implementing Omniauth authentication in my Rails application. In my view file, I have the following code:
<div class="...
2
votes
0
answers
242
views
How to configure keycloak with react and rails backend
I am currently working on integrating Keycloak with a React front-end and a Ruby on Rails back-end. To adhere to best practices, I have set up two separate clients in Keycloak: one configured as ...
0
votes
1
answer
221
views
Is there any valid reason why gem omniauth-rails_csrf_protection in only Rails 4.2+ compatible?
I was wondering is there any valid reason why omniauth-rails_csrf_protection is not compatible with the versions of Rails below 4.2? Are there some functionalities in Rails 4.2+ that are crucial for ...
0
votes
1
answer
915
views
Handle csrf_detected error with omniauth and Keycloak
I am currently trying to use keycloak with a rails app using omniauth but without devise.
So here is my configuration:
Keycloak v22.0.3
omniauth-keycloak v1.5.1
omniauth v2.1.1
I followed everything ...
1
vote
0
answers
177
views
Does omniauth actually verify the token
I am currently trying to create a web app using Ruby on Rails and Keycloak as my authentication server.
I would like also to use it as authorisation server with app roles.
So I found that my best bet ...
1
vote
1
answer
127
views
(apple) Authentication failure! ActionController::InvalidAuthenticityToken
I am trying to integrate Sign In with Apple using the omniauth-apple gem and documentation from omniauth requests to use POST in the link but when i do so, i get the following error
(apple) ...
0
votes
0
answers
88
views
getting invalid_site encountered using omniauth-shopify-oauth2 gem on Rails 7 App
I want to implement a Shopify feature in Rails 7 where a user can fetch other people's Shopify shop information (orders). I created an app in Shopify partners and grabbed the ID and SECRET key of the ...
2
votes
0
answers
1k
views
Apple SSO Callback returns OAuth2::AccessToken.from_hash `hash` contained more than one 'token' key
I am trying to implement Apple SSO using the omniauth_apple gem in Ruby on Rails.
In my devise.rb, i have the following config
config.omniauth :apple, Rails.application.credentials.dig(Rails.env....
0
votes
1
answer
488
views
OAuth LinkedIn sign in with Devise on Rails 7
implementing oauth sign in with linkedin on my rails app with devise but when I clicked on sign in with linkedin, it redirects to a linkedin page saying:
Bummer, something went wrong.
Here's what I ...
1
vote
1
answer
494
views
Session Loss and Empty 'user_redirect_to' Variable in SAML-based Authentication for Rails OAuth 2.0 System
I am developing an authentication system based on OAuth 2.0 on Rails.
I'm using the Devise gem to handle user sessions and login, Doorkeeper gem to manage OAuth 2.0 workflows. in addiotion to username ...
1
vote
1
answer
990
views
How to include CSRF token in single page app in ruby on rails
I'm building a single page application front end with react that talks to a ruby on rails backend. I'm using devise and omniauth for user authentication and I'm trying to sign in with my google ...
1
vote
1
answer
292
views
Rails + omniauth-google-oauth2 + rspec test makes wrong number of arguments
omni_auth_helper.rb
module OmniAuthHelper
def set_omniauth
OmniAuth.config.test_mode = true
OmniAuth.config.mock_auth[:google_oauth2] = OmniAuth::AuthHash.new({
:provider => "...
0
votes
1
answer
50
views
Full backtrace for Omniauth error in testing enviroment
When running an automated test with a omniauth mock, I get:
Run options: -b --seed 58490
# Running:
D, [2023-02-14T18:24:28.454047 #7345] DEBUG -- omniauth: (github) Setup endpoint detected, ...
0
votes
0
answers
263
views
Rails OmniAuth azure-v2
OK i'm not really a ROR person but I'm trying to modify an existing app (forked) from https://github.com/adamcooke/staytus
there's an /admin page which right now brings you to a haml login form with a ...
0
votes
0
answers
198
views
Rails - Azure AD SSO error - Not found. Authentication passthru
I am trying to setup Azure AD SSO for my Rails app. I have followed all the steps from this documentation.
When I click on the Login link, I see an error:
URL - http://localhost:3000/users/auth/...
0
votes
3
answers
913
views
omniauth: (linkedin) Authentication failure! invalid_credentials
Request phase initiated.
Started GET "/users/auth/linkedin/callback?code=...&state=..." for 127.0.0.1 at 2022-09-14 20:50:20 +0200
D, [2022-09-14T20:50:20.537126 #37240] DEBUG -- ...
2
votes
1
answer
2k
views
TikTok Oauth - Parameter error (Login kit)
I am trying to login to my app using tiktok (login kit). I have created a web based app in Tiktok. provided correct redirect domain. App is 'Live in Production'.
I am able to redirect to titok.com but ...
1
vote
1
answer
237
views
Rails & MiniTest IntegrationTests - session not accessible after redirect
Obviously Rails has deprecated ControllerTest in favour of IntegrationTests. I want to test behaviour based on logged in users. I can't set the current user directly and must use the app's login flow ...
2
votes
2
answers
1k
views
Rails Devise-omniauth route points to passthru instead of twitter
I am trying to implement omniauth-twitter with Devise in Ruby-on-Rails with no success.
According to the definitive article of Devise, the link
<%= link_to "Sign up with twitter", ...
0
votes
0
answers
686
views
Rails 7 api-only w/ Devise, Omniauth Google Oauth returns current_user nil
I'm having difficult implementing the full flow for Omniauth Google and Rails API. I've got the "authorization code" from my front end app from Google and have sent it to the callback URL ...
1
vote
0
answers
46
views
Force password submit on Google even when the user is already connected
I'm using https://github.com/zquestz/omniauth-google-oauth2 on a project.
I want to force the password re-submission every time a user tries to login through a Google OAuth2 roundtrip.
The problem is ...
1
vote
1
answer
1k
views
Obtain ID token from Keycloak on Ruby on Rails with Omniauth to implement logout
I've been struggling to implement logout to my Ruby on Rails app. I'm running Keycloak v19.0.2 locally on port 8081. Therefore the logout url for realm test-realm is http://localhost:8081/realms/test-...
0
votes
1
answer
58
views
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
...
0
votes
1
answer
141
views
Ominauth: Google_oauth2 error in rails devise email confirmation issues (You have to confirm your email address before continuing.)
I'm trying use the google login oauth2 in my project, all the codes successfully fixed in right position but I dont want the google oauth2 features to request for email verification just straight to ...
0
votes
1
answer
198
views
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', ...
0
votes
2
answers
657
views
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 ...
1
vote
1
answer
1k
views
omniauth_openid_connect gem - Authentication failure! invalid_request: Rack::OAuth2::Client::Error, invalid_request :: Client credentials are invalid
Im using this gem to add Omniauth OpenID with a provider.
I configured the gem in the Devise Initializer, everything seems to be correct:
config.omniauth :openid_connect,
{
name: :...
0
votes
1
answer
179
views
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 ...
-1
votes
1
answer
442
views
Omniauth Steam with Rails 7
I am creating a new application with rails 7. I would like to add a way for the user to signup via steam. I used the code which works on rails 6, but on rails 7 I receive an error.
Access to fetch at '...
0
votes
0
answers
211
views
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:...
1
vote
1
answer
750
views
Why is OmniAuth::Strategies::Apple giving me nonce_mismatch
I am using omniauth-apple and the Apple button from AppleId.auth. Omniauth is returning Authentication failure! nonce_mismatch.
Any ideas why I keep getting this nonce_mismatch? 🙏
<div id="...
3
votes
2
answers
722
views
Devise + Omniauth: disable email login when users enable SSO
I have a website that used a normal Devise login with email and password.
Then I have completed this tutorial to add Omniauth / SSO:
https://github.com/heartcombo/devise/wiki/OmniAuth:-Overview
Now ...
4
votes
1
answer
1k
views
Rails Devise Omniauth omniauth_openid_connect issue, how to work with endpoints with different hosts
I need some help in configuring omniauth_openid_connect gem (https://github.com/omniauth/omniauth_openid_connect). I have two endpoints one for Authorization and another for token:
Authorization ...
2
votes
0
answers
307
views
Example of how to use Omniauth with Azure B2C and OpenID Connect
I would like to use Omniauth to initiate an implicit flow login to Azure B2C.
I found the following example from https://github.com/omniauth/omniauth_openid_connect. But, I will change it like below ...
0
votes
1
answer
483
views
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....
0
votes
1
answer
302
views
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
288
views
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....
0
votes
0
answers
249
views
Devise authentication and linking social accounts with omniauth
I have an app set up to use Devise for authentication. I am wanting users to be able to link their social media accounts to my app after they have logged in via my devise setup.
I am not looking to ...
1
vote
1
answer
413
views
Apple Omniauth - HTTP Origin header (https://appleid.apple.com) didn't match request.base_url (https://myurl.com)
i am trying to implement omniauth-apple in my rails app and get the following error after apple redirects to my page.
HTTP Origin header (https://appleid.apple.com) didn't match request.base_url (...
1
vote
0
answers
86
views
Could not authenticate you from Twitter because "403 forbidden"
# frozen_string_literal: true
devise.rb
Devise.setup do |config|
config.mailer_sender = '[email protected]'
require 'devise/orm/active_record'
...