Skip to content

Commit 40e6111

Browse files
committed
Finished strategy with Auth Schema convention 1.0 and later
1 parent 441a871 commit 40e6111

File tree

2 files changed

+8
-11
lines changed

2 files changed

+8
-11
lines changed

lib/omniauth/marvin/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module Omniauth
22
module Marvin
3-
VERSION = "0.1.1"
3+
VERSION = "1.0.0"
44
end
55
end

lib/omniauth/strategies/marvin.rb

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,15 @@ class Marvin < OmniAuth::Strategies::OAuth2
1414

1515
info do
1616
{
17-
email: raw_info["email"],
18-
login: raw_info["login"],
19-
url: raw_info["url"],
2017
name: raw_info["displayname"],
21-
mobile: raw_info["mobile"],
18+
email: raw_info["email"],
19+
nickname: raw_info["login"],
20+
location: raw_info["location"],
2221
image: raw_info["image_url"],
23-
staff?: raw_info["staff?"],
24-
correction_point: raw_info["correction_point"],
25-
wallet: raw_info["wallet"],
26-
level: raw_info["cursus"]["level"],
27-
grade: raw_info["cursus"]["grade"],
28-
location: raw_info["location"]
22+
phone: raw_info["mobile"],
23+
urls: {
24+
"Profile" => raw_info["url"]
25+
}
2926
}
3027
end
3128

0 commit comments

Comments
 (0)