Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Working example with omniauth? #937

Closed
Eduardoveras opened this issue Aug 8, 2017 · 4 comments
Closed

Working example with omniauth? #937

Eduardoveras opened this issue Aug 8, 2017 · 4 comments

Comments

@Eduardoveras
Copy link

Does anyone have a working example with omniauth?

im triying to login with google_oauth2 omniauth provider and everything seems to work, but i get to a white page after the login and dont know how to change that

@Eduardoveras
Copy link
Author

Im using JToker, i configure it with my backend as it says in the example, but after a successfull login im unable to return to the front-end, it just leaves me at a blank page

@Eduardoveras
Copy link
Author

Started GET "/auth/google_oauth2?auth_origin_url=http%3A%2F%2Flocalhost%3A8080%2F%23%2Fdashboard&config_name=default&omniauth_window_type=newWindow" for ..........
Started GET "/omniauth/google_oauth2?auth_origin_url=http%3A%2F%2Flocalhost%3A8080%2F%23%2Fdashboard&config_name=default&omniauth_window_type=newWindow&resource_class=User" for ....... at 2017-08-08 10:12:43 -0400
I, [2017-08-08T10:12:43.665188 #674] INFO -- omniauth: (google_oauth2) Request phase initiated.
Started GET "/omniauth/google_oauth2/callback?state=----------&code=-----" for ------ at 2017-08-08 10:12:53 -0400
I, [2017-08-08T10:12:53.462935 #674] INFO -- omniauth: (google_oauth2) Callback phase initiated.
Processing by DeviseTokenAuth::OmniauthCallbacksController#redirect_callbacks as HTML
Parameters: {"state"=>"-------", "code"=>"---------------", "provider"=>"google_oauth2"}
Redirected to http://42e479e2.ngrok.io/auth/google_oauth2/callback
Completed 302 Found in 2ms (ActiveRecord: 0.0ms)

@Eduardoveras
Copy link
Author

Eduardoveras commented Aug 8, 2017

Issue fixed with this, #830, feel free to close this

@sarink
Copy link

sarink commented Nov 22, 2017

#1020

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants