Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ For the scope `team:read,users:read,identify` the resulting auth hash would look
uid: "U3BPA937E",
info: {
description: "Welcome to Slack",
display_name: "matty",
email: "[email protected]",
first_name: "Matt",
image: "https://secure.gravatar.com/avatar/69720796ae3e1c2d63cd66b2d53571a5.jpg?s=192&d=https%3A%2F%2Fa.slack-edge.com%2F7fa9%2Fimg%2Favatars%2Fava_0013-192.png",
Expand Down Expand Up @@ -141,6 +142,8 @@ For the scope `team:read,users:read,identify` the resulting auth hash would look
name: "matty",
profile: {
avatar_hash: "g69720796ae3",
display_name: "matty",
display_name_normalized: "matty",
first_name: "Matt",
image_192: "https://secure.gravatar.com/avatar/69720796ae3e1c2d63cd66b2d53571a5.jpg?s=192&d=https%3A%2F%2Fa.slack-edge.com%2F7fa9%2Fimg%2Favatars%2Fava_0013-192.png",
image_24: "https://secure.gravatar.com/avatar/69720796ae3e1c2d63cd66b2d53571a5.jpg?s=192&d=https%3A%2F%2Fa.slack-edge.com%2F7fa9%2Fimg%2Favatars%2Fava_0013-24.png",
Expand Down
2 changes: 1 addition & 1 deletion lib/omniauth/strategies/slack.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class Slack < OmniAuth::Strategies::OAuth2
}

unless skip_info?
[:first_name, :last_name, :phone].each do |key|
[:first_name, :last_name, :phone, :display_name].each do |key|
hash[key] = user_info['user'].to_h['profile'].to_h[key.to_s]
end
end
Expand Down