singingwolfboy / flask-dance

Doing the OAuth dance with style using Flask, requests, and oauthlib.
https://pypi.python.org/pypi/Flask-Dance/
MIT License
1.01k stars 158 forks source link

Slack: dynamic scopes #296

Open svandegar opened 4 years ago

svandegar commented 4 years ago

Hi!

I've been struggling to find a way to changes the Slack scopes dynamically, using Flask-dance. As the scopes are defined as part of the blueprint, I can't find a way to set different scopes for each user (and to add permissions after the first successful authentication).

Have someone already faced/dealt with the same issue?

singingwolfboy commented 4 years ago

Unfortunately, there is no good way to do with the current design of Flask-Dance. You might need to handle OAuth yourself for this use-case. 😞

If someone can think of an API design that would allow for specifying scopes dynamically, I'm open to the idea!

BRIDGE-AI commented 4 years ago

@svandegar @singingwolfboy I have same requirement.