omniauth-slack icon indicating copy to clipboard operation
omniauth-slack copied to clipboard

Get scope list from X-OAuth-Scopes header

Open ginjo opened this issue 7 years ago • 5 comments

According to Slack docs, the full set of authorized scopes for a token is returned with every api request in the X-OAuth-Scopes header. I can't find that information in the auth_hash returned from omniauth-slack. Is there a way to access that information - and info from other slack-specific headers - in the omniuath-slack oauth_hash, or maybe in the env? Would it make sense to include all slack-specific headers in the auth_hash? I do remember seeing a list of scopes somewhere, once, so maybe I'm looking in the wrong place.

ginjo avatar Sep 05 '16 22:09 ginjo