src.bot.oauth_server module

src.bot.oauth_server.get_db()[source]

Return the MongoDB installations collection, creating the client lazily on first call.

src.bot.oauth_server.install()[source]

Redirect the browser to the Slack OAuth v2 authorization URL to begin app installation.

src.bot.oauth_server.oauth_redirect()[source]

Complete the OAuth v2 flow, exchange the code for a token, and persist the installation to MongoDB.

src.bot.oauth_server.run_oauth_server(bolt_app)[source]

Wire up the Bolt handler and start the Flask server on the configured PORT.

src.bot.oauth_server.slack_events()[source]

Forward incoming Slack event payloads to the Bolt request handler.