omniauth-google-oauth2

How to config image size returned using omniauth-google-oauth2?

雨燕双飞 提交于 2019-12-23 01:36:20
问题 I try to config the omniauth-google-oauth2 with devise in my Rails app: config.omniauth :google_oauth2, GOOGLE_APP_ID, GOOGLE_APP_SECRET, { scope: 'email, profile, plus.login', provider_ignores_state: true, prompt: 'select_account', image_aspect_ratio: 'square', image_size: 50, skip_jwt: true } This work but I try to config the image_size to be larger: image_size: 100, or image_size: {width: 100, height: 100}, Based on this documentation, and it doesn't work, it always returns the image url

redirect_uri_mismatch. Login with Google using Ruby on Rails

吃可爱长大的小学妹 提交于 2019-12-18 09:44:47
问题 I'm trying to add Google Login to my app using omniauth-google-oauth2 gem. I have created the client Id and secret in console.developers.google.com and added redirect_uri as follows. routes.rb get 'auth/:provider/callback', to: 'people#socialmedialogin',:as => :callback Gemfile gem 'omniauth-oauth2', '~> 1.4.0' gem "omniauth-google-oauth2" I am facing the problem in signing in. It is authenticating with Google and fails to redirect. Error is as follows. redirect_uri_mismatch: { "error" :

Google plus API shutdown today, which alternative can be used to authentication?

99封情书 提交于 2019-12-17 10:04:35
问题 I am using rails-4 , and have used OAuth-2 for authentication with Google+ API , for which the following gems are used, in my app: omniauth-oauth2 omniauth-google-oauth2 I have received the following prior email notice: On March 7, 2019, all Google+ APIs and Google+ Sign-in will be shut down completely. This will be a progressive shutdown, with API calls starting to intermittently fail as early as January 28, 2019, and OAuth requests > for Google+ scopes starting to intermittently fail as

How to authenticate two types of user with same authentication callback in rails?

痴心易碎 提交于 2019-12-11 17:24:32
问题 I want to create a webpage using rails 6.0.0, which has two types of users(model) Admin User/viewer But the problems is that I want to authenticate (sign up /sign in) for both users with facebook or google_oauth2 with same callbacks address: /auth/:provider/callback On internet, github and youtube I have found articles and videos only for authenticate single model. But I want to authenticate (sign up /sign in) for two models. Can anyone help? Please give an idea to authenticate both model

redirect_uri_mismatch. Login with Google using Ruby on Rails

偶尔善良 提交于 2019-11-29 17:33:37
I'm trying to add Google Login to my app using omniauth-google-oauth2 gem. I have created the client Id and secret in console.developers.google.com and added redirect_uri as follows. routes.rb get 'auth/:provider/callback', to: 'people#socialmedialogin',:as => :callback Gemfile gem 'omniauth-oauth2', '~> 1.4.0' gem "omniauth-google-oauth2" I am facing the problem in signing in. It is authenticating with Google and fails to redirect. Error is as follows. redirect_uri_mismatch: { "error" : "redirect_uri_mismatch" } Extracted source (around line #113): when 400..599 error = Error.new(response)