Created
July 27, 2018 02:10
-
-
Save ginjo/58cf79aff3489094aecbfff43d03aae1 to your computer and use it in GitHub Desktop.
Slack workspace token OmniAuth::AuthHash object from ginjo fork of omniauth-slack gem, from non-admin user of "new" Slack app
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- !ruby/hash:OmniAuth::AuthHash | |
provider: slack | |
uid: U281GAVT5-T0BCJPFAM | |
info: !ruby/hash:OmniAuth::AuthHash::InfoHash | |
name: Bill Richards | |
email: [email protected] | |
user_id: U281GAVT5 | |
team_name: WbrSandbox | |
team_id: T0BCJPFAM | |
image: | |
first_name: | |
last_name: | |
phone: | |
skype: | |
avatar_hash: | |
real_name: | |
real_name_normalized: | |
deleted: | |
status: | |
color: | |
tz: | |
tz_label: | |
tz_offset: | |
is_admin: | |
is_owner: | |
is_primary_owner: | |
is_restricted: | |
is_ultra_restricted: | |
is_bot: | |
has_2fa: | |
team_domain: wbrsandbox | |
team_image: https://a.slack-edge.com/66f9/img/avatars-teams/ava_0024-44.png | |
team_email_domain: | |
nickname: Bill Richards | |
credentials: !ruby/hash:OmniAuth::AuthHash | |
token: xoxa-1142... | |
expires: false | |
scope: | |
extra: !ruby/hash:OmniAuth::AuthHash | |
web_hook_info: !ruby/hash:OmniAuth::AuthHash {} | |
bot_info: | |
auth: !ruby/hash:OmniAuth::AuthHash | |
ok: true | |
token_type: app | |
app_id: ABXHFJ5J9 | |
app_user_id: UBXBTGKED | |
team_name: WbrSandbox | |
team_id: T0BCJPFAM | |
authorizing_user: !ruby/hash:OmniAuth::AuthHash | |
user_id: U281GAVT5 | |
app_home: DBXQ9PZ27 | |
installer_user: !ruby/hash:OmniAuth::AuthHash | |
user_id: U0BCC482X | |
app_home: DBX73U3LG | |
scopes: !ruby/hash:OmniAuth::AuthHash | |
app_home: !ruby/array:Hashie::Array [] | |
team: !ruby/array:Hashie::Array [] | |
channel: !ruby/array:Hashie::Array [] | |
group: !ruby/array:Hashie::Array [] | |
mpim: !ruby/array:Hashie::Array [] | |
im: !ruby/array:Hashie::Array [] | |
user: !ruby/hash:OmniAuth::AuthHash | |
name: Bill Richards | |
id: U281GAVT5 | |
email: [email protected] | |
image_24: https://secure.gravatar.com/avatar/.....png | |
image_32: https://secure.gravatar.com/avatar/.....png | |
image_48: https://secure.gravatar.com/avatar/.....png | |
image_72: https://secure.gravatar.com/avatar/.....png | |
image_192: https://secure.gravatar.com/avatar/.....png | |
image_512: https://secure.gravatar.com/avatar/.....png | |
team: !ruby/hash:OmniAuth::AuthHash | |
id: T0BCJPFAM | |
name: WbrSandbox | |
domain: wbrsandbox | |
image_34: https://a.slack-edge.com/66f9/img/avatars-teams/ava_0024-34.png | |
image_44: https://a.slack-edge.com/66f9/img/avatars-teams/ava_0024-44.png | |
image_68: https://a.slack-edge.com/66f9/img/avatars-teams/ava_0024-68.png | |
image_88: https://a.slack-edge.com/b3b7/img/avatars-teams/ava_0024-88.png | |
image_102: https://a.slack-edge.com/b3b7/img/avatars-teams/ava_0024-102.png | |
image_132: https://a.slack-edge.com/66f9/img/avatars-teams/ava_0024-132.png | |
image_230: https://a.slack-edge.com/bfaba/img/avatars-teams/ava_0024-230.png | |
image_default: true | |
token: xoxa-1142... | |
identity: | |
user_info: | |
user_profile: | |
team_info: | |
raw_info: !ruby/hash:OmniAuth::AuthHash | |
auth: !ruby/object:OAuth2::AccessToken | |
token: xoxa-1142... | |
refresh_token: | |
expires_in: | |
expires_at: | |
options: | |
:mode: :query | |
:header_format: Bearer %s | |
:param_name: token | |
params: | |
ok: true | |
token_type: app | |
app_id: ABXHFJ5J9 | |
app_user_id: UBXBTGKED | |
team_name: WbrSandbox | |
team_id: T0BCJPFAM | |
authorizing_user: | |
user_id: U281GAVT5 | |
app_home: DBXQ9PZ27 | |
installer_user: | |
user_id: U0BCC482X | |
app_home: DBX73U3LG | |
scopes: | |
app_home: [] | |
team: [] | |
channel: [] | |
group: [] | |
mpim: [] | |
im: [] | |
user: | |
name: Bill Richards | |
id: U281GAVT5 | |
email: [email protected] | |
image_24: https://secure.gravatar.com/avatar/.....png | |
image_32: https://secure.gravatar.com/avatar/.....png | |
image_48: https://secure.gravatar.com/avatar/.....png | |
image_72: https://secure.gravatar.com/avatar/.....png | |
image_192: https://secure.gravatar.com/avatar/.....png | |
image_512: https://secure.gravatar.com/avatar/.....png | |
team: | |
id: T0BCJPFAM | |
name: WbrSandbox | |
domain: wbrsandbox | |
image_34: https://a.slack-edge.com/66f9/img/avatars-teams/ava_0024-34.png | |
image_44: https://a.slack-edge.com/66f9/img/avatars-teams/ava_0024-44.png | |
image_68: https://a.slack-edge.com/66f9/img/avatars-teams/ava_0024-68.png | |
image_88: https://a.slack-edge.com/b3b7/img/avatars-teams/ava_0024-88.png | |
image_102: https://a.slack-edge.com/b3b7/img/avatars-teams/ava_0024-102.png | |
image_132: https://a.slack-edge.com/66f9/img/avatars-teams/ava_0024-132.png | |
image_230: https://a.slack-edge.com/bfaba/img/avatars-teams/ava_0024-230.png | |
image_default: true | |
identity: | |
user_info: | |
user_profile: | |
team_info: | |
bot_info: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What scopes did you request to get this response? I'm playing around with them and having a tricky time getting some of this info, such as the user_id
Edit: Never mind, I see you're doing some extra requests here to get the info.
Edit2: Actually, my initial question still stands 😝 I don't get
auth['user_id']
in the response so I couldn't make a request to the slack API to get the additional user info.