lib/omniauth/strategies/identitas.rb in omniauth-identitas-0.2.1 vs lib/omniauth/strategies/identitas.rb in omniauth-identitas-0.2.2
- old
+ new
@@ -21,13 +21,15 @@
name: [raw_info["first_name"], raw_info["last_name"]].join(" ")
}
end
extra do
- {
- m: request.params["m"]
- }
+ hash = {}
+ hash['raw_info'] = raw_info unless skip_info?
+ hash['m'] = request.params["m"]
+ hash['application_info'] = application_info
+ hash
end
def raw_info
@raw_info ||= access_token.get('/v1/me.json').parsed
rescue ::Errno::ETIMEDOUT
@@ -43,9 +45,13 @@
"?" + {m: options.authorize_params[:m]}.to_query
end
def setup_phase
options.authorize_params[:m] = request.params["m"]
+ end
+
+ def application_info
+ @application_info ||= access_token.get('/v1/app/info').parsed
end
end
end
end
\ No newline at end of file