Skip to main content

slack-OAuth-store

A wapper class of FileInstallationStore to support encryption at rest

Example with Bolt

from slack_installation_store import EncryptedFileInstallationStore
from asyncio.log import logger
import os
import logging
from slack_bolt import App
from slack_bolt.oauth.oauth_settings import OAuthSettings
from slack_sdk.oauth.state_store import FileOAuthStateStore

logging.basicConfig(level=logging.DEBUG)

oauth_settings=OAuthSettings(
    client_id=os.environ.get("SLACK_CLIENT_ID"),
    client_secret=os.environ.get("SLACK_CLIENT_SECRET"),
    scopes=os.environ.get("SLACK_SCOPES","").split(','),
    user_scopes=[],
    install_path="/slack/install",\
    installation_store=EncryptedFileInstallationStore(base_dir="./data/installations", encryption_key=os.environ.get("SLACK_INSTALL_STORE_KEY")),
    state_store=FileOAuthStateStore(expiration_seconds=600, base_dir="./data/states")
)

# Initializes app with your bot oauth settings
app = App(
    signing_secret=os.environ["SLACK_SIGNING_SECRET"],
    oauth_settings=oauth_settings
)

@app.event("app_mention")
def event_test(body, say, logger):
    logger.info(body)
    say("Hello")

# Start your app
if __name__ == "__main__":
    app.start(port=int(os.environ.get("PORT", 3000)))

See https://github.com/slackapi/python-slack-sdk

Metadata

Release files for slack-oauth-store 0.0.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for slack-oauth-store 0.0.4
File Size Uploaded Provenance Actions
slack-oauth-store-0.0.4.tar.gz 3.9 kB Without provenance Details for slack-oauth-store-0.0.4.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for slack-oauth-store 0.0.4
File Interpreter ABI Platform Actions
slack_oauth_store-0.0.4-py3-none-any.whl Python 3 none any Details for slack_oauth_store-0.0.4-py3-none-any.whl

Total release size: 8.1 kB

Release files / slack-oauth-store-0.0.4.tar.gz

Download URL slack-oauth-store-0.0.4.tar.gz
Size 3.9 kB
Tags Source
SHA-256 checksum
How to use checksums
6c213b34100b9be3c008da7ffca78abf27408a5a39ddd6905ec5d1bd930bef4c
BLAKE2b-256 checksum
How to use checksums
7cade6ea896d25f1f69bab6ec3d8268bf7a7e54ee3f28e45755d9e6bedc82b8b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.12

Release files / slack_oauth_store-0.0.4-py3-none-any.whl

Download URL slack_oauth_store-0.0.4-py3-none-any.whl
Size 4.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
61745e0da39a2fbf0db095a89ffdc4e7605d92746489e661d70a25ca300b703e
BLAKE2b-256 checksum
How to use checksums
273f6ca322db24f1a0e9e01c2f93ac12cbfb4baf6381d10ba23067dbf2ebacfb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.12

Security for slack-oauth-store 0.0.4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page