-
Notifications
You must be signed in to change notification settings - Fork 248
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Token rotation/refresh not working #962
Comments
Hello @ccaruceru thanks for writing in 💯 The I took a quick look at your implementation (great job btw 🥇), I've been trying to compare it with our google_cloud_function.oauth implementation, this error may come from ignoring the Let me know if this helps resolves you're issue |
Hi @WilliamBergamin! Thanks for the quick reply. I'll have a look at how the Asked around and we're not using Slack Enterprise, only the Pro plan. The Slack app is installed on workspace level (not org-wide) so in theory |
Hey @WilliamBergamin! So I guess this is a case closed 😄 |
ps: Let me know know if you're interested in a PR to bolt-python repo with the specific |
Hi @ccaruceru, it's great to hear that you've resolved the issue! As for the Google Cloud Storage implementation, if you're fine to spend more time on its unit tests with mock like we do for the Amazon S3 one, we are happy to maintain Google Cloud Storage implementation as one of the built-in modules! Let me close this issue now 👋 |
Hi again! Unfortunately I'm still encountering the same problem 😕 What I observed is that for some reason my user data fields in the installation become { "user_token": null, "user_scopes": null, "user_refresh_token": null, "user_token_expires_at": null } I also observed that there was an another error before the not_authed started happening:
Which basically means the user tried to add too many reactions to the same message. Would this error affect in any way the generation of the user tokens? What would happen if the token is due to be refreshed and there's an API error? |
fyi, the app I deployed has been running all the time since the last time we spoke and haven't experienced the errors since then. My gut feeling is that the Slack servers were replying with the "wrong" response and were fixed during this time. |
Hi, I made a user-driven app with Bolt for python which uses a custom
InstallationStore
andOAuthStateStore
to support google cloud storage, and the Slack app has token rotation enabled. But after a while the requests to Slack servers stop working and getting anot_authed
error. E.g.:If I understand correctly, the rotation of the token should be handled by the Bolt framework. If that's not the case, is there anything else that must be implemented to support the refresh/rotation?
Environment:
slack_bolt
version: 1.16.2Steps to reproduce:
Check the development setup guide here to get the repo running locally.
Expected result:
In the past the app was running w/o token rotation enabled on the Slack level and there were no authentication issues during the lifetime of the app when users interacted with it. But after activating it there are
not_authed
errors being thrown by the server after a period of time (w/ or w/o user inactivity in the app).The workaround is to reinstall the app by visiting the
/slack/install
endpoint.Actual result:
The Slack server communication works with no authentication issues.
The text was updated successfully, but these errors were encountered: