skorks/omniauth-linkedin не может получить "поле компании" по хэшу позиций
У меня проблемы с получением поля компании из хеша позиций. Любые предложения о том, что я делаю не так. У меня нет проблем с другими полями или изображением профиля.
omniauth.rb
Rails.application.config.middleware.use OmniAuth::Builder do
provider :linkedin, "xyz", "abc", :scope => 'r_fullprofile r_emailaddress ', :fields => ["id", "email-address", "first-name", "last-name", "headline", "industry", "picture-url", "public-profile-url", "location", "positions"]
end
user.rb
def self.create_user_from_linkedin(auth)
create(
avatar: process_uri(auth['info']['image'] + "?width=9999"),
email: auth['info']['email'],
provider: auth['provider'],
uid: auth['uid'],
name: auth['info']['name'],
gender: auth['info']['first_name'],
#date_of_birth: "
#location: auth['info']['location'],
position: auth['extra']['raw_info']['positions'],
bio: auth['extra']['raw_info']['headline']
)
end