lib/omniauth/strategies/openstax.rb in openstax_connect-0.0.2 vs lib/omniauth/strategies/openstax.rb in openstax_connect-0.0.3
- old
+ new
@@ -9,14 +9,16 @@
option :client_options, {
:site => OpenStax::Connect.configuration.openstax_services_url,
:authorize_url => "/oauth/authorize"
}
- uid { raw_info["uid"] }
+ uid { raw_info["uid"] }
info do
{
- :username => raw_info["username"]
+ username: raw_info["username"],
+ first_name: raw_info["first_name"],
+ last_name: raw_info["last_name"]
# and anything else you want to return to your API consumers
}
end
def raw_info