-
Notifications
You must be signed in to change notification settings - Fork 404
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to setup the oauth flow? #302
Comments
At the moment, Bolt doesn't have a feature to handle OAuth flow as a part of the framework. Bolt users need to implement https://api.slack.com/docs/oauth on their own. After implementing the OAuth flow, only the thing to do is to implement the |
@kroltan To help you on your way, this is my boilerplate of the oauth flow, working alongside Bolt. It also uses the express instance of Bolt, rather than a new one. It might need some tweaks here and there, but it should be useful. Don't forget to implement the state mechanism though, it's very important. Side note: it's not using oauth.v2.access method because it doesn't seem to be available in Bolt yet either.
|
Folks who are still stuck on this, you might want to check out this project: https://github.com/asopinka/bolt-oauth I haven't used it myself yet, but it seems to solve this problem in a reusable way. |
I have a question about: const app = new App({
authorize: authorizeFn,
receiver: expressReceiver
}); Does The question is a bit naive but I'd appreciate any help 🙏 |
No, it doesn't.
Every time At the moment, Bolt doesn't offer the features to manage your database. So, as the examples above do, your app needs to insert/update/delete rows in the database when users install/uninstall your app. Does this explanation make sense to you? |
@seratch ahhhhh Thanks!! Edit: I now see your comment about |
Happy to be of help to you! 😃 |
Is the oAuthV2 not available still? |
Thanks @ErwinAI this is the closest I cam to get this running. I had to make a few changes.
instead of
instead of
And be careful with
its probably
took me a while to figure it out |
I noticed that |
@jparr721 I'm not sure I understand what your asking? Want to open a new issue for this? |
Sure, thanks @stevengill |
Description
I've developed a bot and it works fine on its home workspace. Now I need to make oauth work so it can be installed on other workspaces. How can I do that? Does Bold provide anything by default?
What type of issue is this? (place an
x
in one of the[ ]
)Requirements (place an
x
in each of the[ ]
)The text was updated successfully, but these errors were encountered: