-
Notifications
You must be signed in to change notification settings - Fork 67
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
Valid Login, No Details: email=nil image=nil name="github|38257089" nickname=nil #70
Comments
@khrome-cape - Sorry for the trouble here. We have not tested with Devise at all so can't guarantee that this configuration will work. That said, we're happy to make any changes needed to make that possible. In the meantime ... your logs look fine, that's what they look like on my end with a successful authentication. You configuration generally looks fine, I don't think either of the additional options there would have an effect on the auth data that's being compiled. There is a newer version of this gem that you could try. That updates an underlying Have you tried examining what you have in Lastly, can you test authentication with just OmniAuth by itself, outside of Devise? That would narrow the troubleshooting scope a bit. |
Hey there thanks for the reply I've been away for the holidays and a cross country move. I picked it back up with fresh eyes this week but have not been having much progress. You are right about Devise putting them somewhere else (in my case |
So I was able to get much closer to a working solution (a mixture of timing, scope changes and payload placement), but am still not receiving the email field (using the same scope & application credentials I do get this in node.js/passport ). Any ideas as to what could be going wrong? |
Glad to hear! In Also ... |
Awesome! Not a dealbreaker, but it's curious I'm getting email without explicitly requesting it in node.js/passport. The long and short is the 3 libraries do work together, but configuration/setup is tricky. I'll be producing documentation internally for this purpose... at some point I'll try to reformat that as a short setup tutorial. Thanks! |
One of the tenants of OpenID is you don't get back any profile data that you didn't explicitly ask for. It might be added later on in the process somewhere? Or maybe you asked for
You can see the email address in there but it's for the If you're able to provide the configuration information for using this library with Devise, we'd greatly appreciate it! It's a question that comes up now and again so it would be nice to have some documentation on it. Happy to test it on my end as well. |
I am having the same response as you @joshcanhelp @khrome-cape could is this normal? |
Missing Login Info
Description
I'm currently integrating omniauth SSO to an existing Devise based application. (Devise + omniauth + omniauth-auth0). After a little experimentation I was able to get auth working, but don't receive any of the metadata I would expect... instead I get:
#<OmniAuth::AuthHash::InfoHash email=nil image=nil name="github|<USER_ID>" nickname=nil>
in the
info
hash. Is there a quick fix/known behavior for this issue?Prerequisites
I checked around and saw no issues/fixes/PRs to match
Environment
Please provide the following:
aasm
activerecord-import
activerecord-postgis-adapter
angular_rails_csrf
aws-sdk (>= 2.0.34)
better_errors
bootstrap (
> 4.0.0.alpha6)> 0.11.0)bower-rails (
byebug (
> 10.0.0)> 4.2)capybara
coffee-rails (
config
database_cleaner
debase (
> 0.2.1)> 2.5)devise (= 4.3.0)
factory_girl_rails
faker
freyr_client!
gis_tools!
haml-rails
image_tools!
jbuilder (
jquery-rails
listen (
> 3.0.5)> 1.6.1)newrelic_rpm (>= 3.6)
ngannotate-rails
omniauth (
omniauth-auth0 (
> 2.0.0)> 5.0.1)paperclip!
parallelize
passenger (>= 5.0.25)
pg
pundit
rails (
rails-controller-testing
rails_admin
rails_admin_pundit!
rbtrace
redis
redis-lock
redis-namespace
redis-objects
redis-rails
redis-store
restangular-rails!
rgeo (>= 0.5.2)
rgeo-geojson
rmagick
rspec-rails
ruby-debug-ide (
> 0.6.0)> 5.0)ruby-opencv (= 0.0.17)
sass-rails (
sidekiq (= 4.0)
sidekiq-failures
sidekiq-scheduler
sidekiq-unique-jobs
simplecov
sinatra (= 2.0.0.beta2)
slim (= 2.0.1)
spring
spring-watcher-listen (
> 2.0.0)> 5)sqlite3
turbolinks (
typhoeus
tzinfo-data
uglifier (>= 1.3.0)
web-console (>= 3.3.0)
Reproduction
I never get details on login, only the uid of the user. Every attempted login on any provider is a reproduction of this issue. I do not have an isolated test case.
It seems to do the same thing for any provider. ( EX:
google-oauth2|USER_ID
is all that comes in for thegoogle
provider )Logs
Logs indicate a successful auth, but themselves have some empty fields.
Settings
In my
devise
config:I'm examining the incoming
auth
inside myself.from_omniauth(auth)
implementation.Thanks for looking,
-abbey
The text was updated successfully, but these errors were encountered: