Releases: slackapi/bolt-python
version 1.9.4
version 1.9.3
version 1.9.2
Changes
- #477 Add more guide message in the HTML generated by the default failure handler - Thanks @seratch @misscoded @filmaj
- #476 Improve the error message in the case where AuthorizeResult is not found - Thanks @seratch
Document updates:
- #479 Adds update view on submission docs - Thanks @srajiang
- #472 update block id from listening modals - Thanks @bodepd
References
version 1.9.1
Changes
- #460 Fix #459 Invalid type hints in App / AsyncApp - Thanks @seratch @chrisbouchard
References
version 1.9.0
New Features
More Customization for Apps
Since this release, developers can customize listener_executor
in apps. Also, to support the use case where Enterprise Grid Org admins install apps from their app management page, we've added a new option to disable state parameter validation in the OAuth flow. Please note that we still don't recommend disabling the state validation for usual OAuth apps.
Changes
- #452 #453 Enable to customize the
listener_executor
inApp
- Thanks @chrisbouchard - #455 #454 Add
oauth_settings.state_validation_enabled
to customize the OAuth flow - Thanks @seratch
References
version 1.8.1
Changes
- #451 Fix cookie extraction during OAuth for REST based AWS API GW + Lambda app - Thanks @naveensan1
- #449 Fix typo in
App
/AsyncApp
comments and API documents - Thanks @objectfox - #446 Update the entity name - Thanks @seratch
References
version 1.8.0
Changes
- #436 Fix #409 Custom token rotation expiration time does not work if installation_store is passed at top level - Thanks @seratch
- #437 Fix a token rotation bug where a bot token is not refreshed if a user token does not exist - Thanks @seratch
- #431 Fix #430 by adding a new option to customize dev server (http.server) logging - Thanks @seratch @cole-wilson
- #432 Update Sanic adapter and its tests to be compatible with sanic v21 - Thanks @seratch
- #416 Fix type hint errors detected by pytype 2021.7.19 - Thanks @seratch
Document Updates
- #442 #444 Added basic lazy lambda example setup and deploy instructions - Thanks @filmaj
- #418 #414 Add Japanese translation of "token rotation" document - Thanks @hirosassa
- #426 #406 Add Japanese translation of "Getting started over HTTP" and "Getting started" documents - Thanks @hirosassa
- #415 #412 #429 Update "incoming events" to "incoming requests" in documents - Thanks @RhnSharma @Shoryu-N
References
version 1.8.0rc1
Refer to the v1.8.0 release note
version 1.7.0
New Features
Token Rotation Support
This version includes the support for the apps enabling the newly released token rotation for better security. Refer to the API document for the general information about the feature.
How to handle token rotation with this SDK
If you use any of the built-in InstallationStore
, there is nothing else to change on your application code side. If you use the relational database tables along with a built-in InstallationStore
, refer to the latest table schema here.
If you use your own custom authorize
, not the built-in InstallationStoreAuthorize
, the authorize
function needs to be updated to run the token rotation. Refer to the InstallationStoreAuthorize
's code to learn what to do for it.
Migration guide for Django users
If you operate Django apps based on the example app in this repository and would like to enable token rotation for the apps, check this commit to learn the required changes for it.
Migration guide for SQLAlchemyInstallationStore
users
If your app uses the built-in SQLAlchemyInstallationStore
for managing Slack app installations, adding the following database columns is required for this version upgrade. Refer to the code to check the complete ones.
Also, since this version, all the table columns for string data have their max length for better compatibility with MySQL. We recommend setting the same ones for your models.
slack_installations
Column("bot_refresh_token", String(200)),
Column("bot_token_expires_at", DateTime),
Column("user_refresh_token", String(200)),
Column("user_token_expires_at", DateTime),
slack_bots
Column("bot_refresh_token", String(200)),
Column("bot_token_expires_at", DateTime),
Changes
- #404 Fix #400 token rotation feature support - Thanks @seratch
- #387 #386 Replace re.search() with re.findall() in MessgeListenerMatches middleware to provide better matching results - Thanks @albeec13
- #379 Make cookies extraction on AWS Lambda compatible with its format v1.0 - Thanks @tattee
- #375 Update install page to avoid favicon downloads - Thanks @Bhavya6187
- #401 Fix #378 by adding middleware error handlers - Thanks @seratch @jeremyschulman
- #403 Fix #377 Better log messages for AsyncApp when a listener is missing - Thanks @seratch
- #394 Fix #370 by adding an alias of next arg (next_) in middleware arguments - Thanks @seratch
- #402 Fix #372 by adding listener matcher docs - Thanks @seratch
- #389 Add reference to WorkflowStepBuilder in docs - Thanks @misscoded
References
version 1.6.1
Changes
- #331 #330 Potentially request.body can be None when using a custom adapter - Thanks @matteobaldelli @seratch
- #363 Fix #346 Allow unfurl_media / unfurl_links in ack / respond - Thanks @gburek-fastly @seratch