-
Notifications
You must be signed in to change notification settings - Fork 393
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
Install and authorize multiple slack app clients with a single bolt js server #2206
Comments
Hey @KondaHarika 👋 This is a super interesting question but I might need more clarification around what you're hoping to achieve.
What are the client credentials provided here? I'm wondering mostly if these are associated with the same app ID and signing secrets, just a different client ID and client secret? If so, deciding this from the
I'm not sure that this path is registering as a router for your app at all - instead it might be the default expApp.use('/slack/install', expressReceiver.router); As for some thoughts- it is my understanding that Instead, installations can be handled with the This might require custom route handling using the Please let me know if this seems like a way to handle installations or if I'm missing some of the nuance with this! I do understand this might be a bit more code, but I'm also hoping it's an alright approach 🙏 |
@zimeg, Thanks for explaining.
Regarding above, its different app with different app credentials. Basically, the case here is different people will have there own app with different bot name, bot logo etc, but the functionality would be eventually different. Hence I will save the credentials in the DB and provide their installation URL. |
@KondaHarika For sure! I'm now wondering when the app functionalities differ 🤔 It sounds like you're wanting to use the same initialization logic and listeners, but with different credentials within the app and different apps and signing secrets altogether? Could setting up an HTTP router before the app initialization provide enough customization to the routes and request URLs needed for these different installations? I might still be needing more details on the setup you're planning! 💭 |
👋 It looks like this issue has been open for 30 days with no activity. We'll mark this as stale for now, and wait 10 days for an update or for further comment before closing this issue out. If you think this issue needs to be prioritized, please comment to get the thread going again! Maintainers also review issues marked as stale on a regular basis and comment or adjust status if the issue needs to be reprioritized. |
Hey @zimeg , Sorry for the delayed response. I was working on another slack app development. So, coming back to this , I do get your suggestion of using @slack/oauth package and authorizations with the authorize, but i didnt understand
Also, If am providing the slack credentials dynamically, I was thinking how should I manage the listeners. Currently, I write code for listeners this way
|
I have a scenario where people create slack app and would provide the client credentials.
Generally the installation url provide is like {URL}/slack/install,
but here idea is to pass a query param and identify the respective slack app, hence based on that I will get client data from MongoDB and hence the install process.
Question here is that is this approach possible or do we have any other way to execute this case?
Second, I have been trying execute the above approach so trying to use the express middleware, to set the params required but I am unable to access the middleware here?! Is there anything wrong that Im doing here !?
The text was updated successfully, but these errors were encountered: