I'm working an existing bot (using asyncio) which has some code in an event loop which accesses the app.client property to talk to the slack API while outside a bolt handler context.
I'd like to enable token rotation, but after looking into how it works it doesn't seem to update the token for the static client, only the token used for the per-request client.
I can't find any documentation on this and I don't want to turn on token rotation to see what happens because that'll break the bot if it doesn't work.
Does token rotation work automatically with app.client? If not, is it possible to make it work?
Reproducible in:
The slack_bolt version
slack-bolt==1.23.0 ; python_version == "3.11" \
slack-sdk==3.35.0 ; python_version == "3.11" \
(Paste the output of pip freeze | grep slack)
Python runtime version
OS info
#28~24.04.1-Ubuntu SMP PREEMPT_DYNAMIC Fri May 23 10:31:01 UTC 2
Steps to reproduce:
- have code that accesses
app.client outside of a bolt handler
- enable token rotation
- ???
Expected result:
everything works
Actual result:
unknown
Requirements
Please read the Contributing guidelines and Code of Conduct before creating this issue or pull request. By submitting, you are agreeing to those rules.
I'm working an existing bot (using asyncio) which has some code in an event loop which accesses the
app.clientproperty to talk to the slack API while outside a bolt handler context.I'd like to enable token rotation, but after looking into how it works it doesn't seem to update the token for the static client, only the token used for the per-request client.
I can't find any documentation on this and I don't want to turn on token rotation to see what happens because that'll break the bot if it doesn't work.
Does token rotation work automatically with
app.client? If not, is it possible to make it work?Reproducible in:
The
slack_boltversion(Paste the output of
pip freeze | grep slack)Python runtime version
OS info
Steps to reproduce:
app.clientoutside of a bolt handlerExpected result:
everything works
Actual result:
unknown
Requirements
Please read the Contributing guidelines and Code of Conduct before creating this issue or pull request. By submitting, you are agreeing to those rules.