omniauth-orcid 1.0.29 → 1.0.30
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/omniauth/orcid/version.rb +1 -1
- data/lib/omniauth/strategies/orcid.rb +5 -5
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fda37b7b6749323749c05caf0e790d162baa5997
|
4
|
+
data.tar.gz: bf92b03f245608ceeb97f8b245e2ac2648d85846
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b59bd6ca6d78dce871a15fe1ba1125490c98eefd403b30ad0ac3f15978e65809723acfe2ab52212df0f9decbaef60683bfe8df46f9ecbc76870e9eabd3a07c5d
|
7
|
+
data.tar.gz: 276aca84399811823d5d8406ac92173024cf8d60e1bf81ea1e3245a5bb7e1760880394fdd6f1b3efdefa73e311dadab91ecadd49925d59abf8fc6eb78b7f8b15
|
@@ -109,12 +109,12 @@ module OmniAuth
|
|
109
109
|
end
|
110
110
|
|
111
111
|
def raw_info
|
112
|
-
orcid_bio = request_info.fetch('orcid-profile',
|
112
|
+
orcid_bio = request_info.fetch('orcid-profile', nil).to_h.fetch('orcid-bio', {})
|
113
113
|
|
114
|
-
{ name: orcid_bio.fetch('personal-details',
|
115
|
-
first_name: orcid_bio.fetch('personal-details',
|
116
|
-
last_name: orcid_bio.fetch('personal-details',
|
117
|
-
other_names: orcid_bio.fetch('personal-details',
|
114
|
+
{ name: orcid_bio.fetch('personal-details', nil).to_h.fetch('credit-name', nil).to_h.fetch('value', nil),
|
115
|
+
first_name: orcid_bio.fetch('personal-details', nil).to_h.fetch('given-names', nil).to_h.fetch('value', nil),
|
116
|
+
last_name: orcid_bio.fetch('personal-details', nil).to_h.fetch('family-name', nil).to_h.fetch('value', nil),
|
117
|
+
other_names: orcid_bio.fetch('personal-details', nil).to_h.fetch('other-names', nil).to_h.fetch('other-name', [{}]).map { |other_name| other_name.fetch('value', nil) },
|
118
118
|
description: orcid_bio.fetch('biography', nil).to_h.fetch('value', nil),
|
119
119
|
urls: {}
|
120
120
|
}
|