I have a Ruby on Rails Setup with auth0 strongly aligned with the given examples. The setup worked fine until this afternoon where auth0 as auth provider suddenly just returned empty, or nil attributes for users who are signing in regardless of the sign in method (social or database). I still get a valid token and expiration date but email, nickname, name are nil and raw_info is empty.
How come? Is there a good explanation? I double checked all settings but there is nothing which may explains this sudden change.
An example callback from auth0 after authentication looks like
{"provider"=>"auth0",
"uid"=>nil,
"info"=>{"name"=>nil, "nickname"=>nil, "email"=>nil, "image"=>nil},
"credentials"=>
{"token"=>"CoHuObjRipfGjjovZqivW7x8mIVa0gwF",
"expires_at"=>1511454049,
"expires"=>true,
"id_token"=>nil,
"token_type"=>"Bearer",
"refresh_token"=>nil},
"extra"=>{"raw_info"=>{}}}
for a successful social login as well as a successful login with a “normal” database user using lock with the following versions
oauth2 (1.4.0)
faraday (>= 0.8, < 0.13)
jwt (~> 1.0)
multi_json (~> 1.3)
multi_xml (~> 0.5)
rack (>= 1.2, < 3)
omniauth (1.6.1)
hashie (>= 3.4.6, < 3.6.0)
rack (>= 1.6.2, < 3)
omniauth-auth0 (2.0.0)
omniauth-oauth2 (~> 1.4)
omniauth-oauth2 (1.4.0)
oauth2 (~> 1.0)
omniauth (~> 1.2)
and lock with the following setup:
<%= javascript_include_tag '//cdn.auth0.com/js/auth0/8.8/auth0.min.js' %>
<script>
var webAuth = new auth0.WebAuth({
domain: '<%= Rails.application.secrets.auth0_domain %>',
clientID: '<%= Rails.application.secrets.auth0_client_id %>',
redirectUri: '<%= Rails.application.secrets.auth0_callback_url %>',
audience: `https://<%= Rails.application.secrets.auth0_domain %>/userinfo`,
responseType: 'code',
scope: 'openid profile',
state: '<%= get_state %>'
});