github slackapi/bolt-python v1.1.2
version 1.1.2

latest releases: v1.20.1, v1.20.0, v1.19.1...
3 years ago

New Features

v1.0 authorize compatible mode

Now you can use InstallationStore's v1.0 compatible mode in authorize.

Setting App/AsyncApp's installation_store_bot_only constructor argument as True works in the same manner as v1.0 authorize. If you manually initialize InstallationStoreAuthorize, bot_only flag in it is the one you can configure. See the pull request #171 for more details.

installation_store = MyInstallationStore()
oauth_state_store = MyOAuthStateStore()

app = App(
    # If you want to keep using only `#find_bot` for token retrieval,
    # you can configure installation_store_bot_only as True
    installation_store_bot_only=True,
    oauth_settings=OAuthSettings(
        installation_store=installation_store,
        state_store=oauth_state_store,
    ),
)

NOTE: If you use installation_store_bot_only flag in OAuthFlow or OAuthSettings, please upgrade to v1.1.3 or higher.

Changes

References

Don't miss a new bolt-python release

NewReleases is sending notifications on new releases.