saleor / saleor-app-slack

saleor-app-slack-seven.vercel.app
Other
29 stars 1 forks source link

Implement Slack App Manifest #3

Closed krzysztofwolski closed 2 years ago

krzysztofwolski commented 2 years ago

It seems to we'll be able to make the installation process more user-friendly using Slack App Manifest: https://api.slack.com/reference/manifests#sharing_manifests .

Requirements:

krzysztofzuraw commented 2 years ago

I've dug a bit of Slack documentation and I've found out that you can programmatically receive a webhook URL when the user creates an app (doc reference).

I'm attaching a screenshot as Slack docs can't link to headers 🤷

CleanShot 2022-10-11 at 10 09 32@2x

Proposed flow

sequenceDiagram
    participant app
    participant slack
    app->>slack: share app manifest
    slack->>app: send back webhook URL
    app->>app: saves webhook URL
krzysztofzuraw commented 2 years ago

After further investigation, I found out that implementing the changes proposed by my comment will require migrating to OAuth flow so I will skip this part for now.