You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey team,
I want to integrate Slack BOLT SDK in my distributed java application to be able to send messages to users. The app/bot won't be handling any incoming requests at this point. This app will only be installed in 1 workspace but with token rotation enabled for security purpose.
How does bolt SDK handle token rotation? will the token expiration be checked only when a postMessage is called and then the token is refreshed? There maybe cases in my application when a message may not be sent for days, with the 12 hour expiry of access token will this be an issue and is it possible to configure the slack app to rotate the token every X hours?
In my distributed java app, will token rotation with default amazon S3 implementation be handled without any concurrency issues?
The text was updated successfully, but these errors were encountered:
I would also like to get any recommendation if I should stick to Bolt SDK in my use case? I am primarily starting from Bolt SDK because even though current use case is to only send messages and not receive any input, in the future the App maybe expanded with this functionality + want token rotation to be handled
That's right; if enabled via app settings, the Bolt SDK will handle token rotation for you. The full details can be found in the source code for the middleware here: MultiTeamsAuthorization (from the release notes). I believe when a request is made, the checks will happen in the middleware to validate the token, at which point it may be rotated.
The refresh token is a long-lived token and never expires, whereas the access token expires after 12 hours. When you use the refresh token you get a new auth token and a new refresh token. The refresh token that was just used will remain valid for 5 minutes and then expire.
Hey team,
I want to integrate Slack BOLT SDK in my distributed java application to be able to send messages to users. The app/bot won't be handling any incoming requests at this point. This app will only be installed in 1 workspace but with token rotation enabled for security purpose.
How does bolt SDK handle token rotation? will the token expiration be checked only when a postMessage is called and then the token is refreshed? There maybe cases in my application when a message may not be sent for days, with the 12 hour expiry of access token will this be an issue and is it possible to configure the slack app to rotate the token every X hours?
In my distributed java app, will token rotation with default amazon S3 implementation be handled without any concurrency issues?
The text was updated successfully, but these errors were encountered: