You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I'm trying to implement omniauth with google, I was able to redirect to google, select account and then redirect to the callback route, but I'm getting an error ocurred error when rendering omniauthsuccess, the users are being created, I can see them in the rails console, I have already looked some tutorials like this one but no success
the versions of the gems are the following:
devise (4.3.0)
devise_token_auth (0.1.42)
oauth2 (1.4.0)
omniauth (1.8.1)
oauth2 (1.4.0)
omniauth (1.8.1)
omniauth-google-oauth2 (0.5.3)
omniauth-oauth2 (1.5.0)
rails (5.1.4)
The project was created using the --api flag, I have already configured the devise initializer.
Rails.application.routes.drawdomount_devise_token_auth_for'User',at: 'auth',controllers: {omniauth_callbacks: 'users/omniauth_callbacks'},defaults: {format: :json}get'login',to: redirect('/auth/google_oauth2'),as: 'login'get'logout',to: 'sessions#destroy',as: 'logout'get'auth/failure',to: redirect('/')# For details on the DSL available within this file, see http://guides.rubyonrails.org/routing.htmlnamespace:apidonamespace:v1doresources:productsendendend
currently I'm not using any front end, just testing in my browser.
Thanks in advance.. and If I'm able to pull this off, I will gladly contribute with a tutorial, or a README, or something, thanks again
The text was updated successfully, but these errors were encountered:
Hello, I'm trying to implement omniauth with google, I was able to redirect to google, select account and then redirect to the callback route, but I'm getting
an error ocurred
error when rendering omniauthsuccess, the users are being created, I can see them in the rails console, I have already looked some tutorials like this one but no successthe versions of the gems are the following:
The project was created using the --api flag, I have already configured the devise initializer.
the routes are the following:
currently I'm not using any front end, just testing in my browser.
Thanks in advance.. and If I'm able to pull this off, I will gladly contribute with a tutorial, or a README, or something, thanks again
The text was updated successfully, but these errors were encountered: