-
Notifications
You must be signed in to change notification settings - Fork 406
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
OAuth redirect URI blank #2449
Comments
Hey @jfbn! 👋 Thanks for sharing this code snippet and question. The setup you have seems to be working for me after checking for matching and saved Redirect URLs on app settings under the OAuth & Permissions tab 🔍
I noticed this too and it caught me off guard... However, I believe this is expected with the following note in documentation:
AFAICT,
For clarification, does this refer to the Adding the following line to success: (installation, installUrlOptions, req, res) => {
console.log('success installation', installation)
+ res.end("The installation succeeded!");
}, If the above isn't working, I'm wondering if the variables you're passing to On setup, the |
Hi @zimeg, thank you for your reply. I have resolved my issues with the redirect URI. Turns out that because I didn't provide an explicit
When configuring the I realize this is unrelated to the issue I opened, but I'm still curious about it. Lastly, where do you propose I ask questions about configuring the bolt sdk in the future? I am trying to understand how I can persist state through the OAuth flow and into my |
@jfbn I'm glad to know the missing
Great callout! I'll update that example - I shouldn't have added an "s" to "end" 😉
Depending on what's being stored, I'm wondering if the
Please feel welcomed writing in here 🙏 ✨ Issues are a great place for clarifying all things Bolt, SDKs, tooling, docs, and the like! It helps us organize info and IMO issues can be a nice freeform reference with examples 📚 |
Thank you again for taking your time helping me out @zimeg, it's dearly appreciated. I am going to hijack this entire thread now for asking some more questions. I suspect that I am fundamentally misunderstanding something. I will try to chalk up our use case. We are a SaaS. We have users that are in different "groups" on our platform. Those groups typically (almost always) relate to one of our customers, who themselves have their own Slack workspace. We want to, based on our services, send Slack messages to their workspace from time to time. We want to have a Therefore, I see it necessary to pass along, from our platform, through the After having thought about it for a bit, and now typing this out, I'm starting to feel like I'm going about this backwards. I added the I'm sorry if I'm confusing you here, it's likely that I misunderstand some basics of OAuth and Auth in general. |
Update: I'm looking at this example from the non-bolt documentation It looks like I could go this route to persist data through the OAuth flow using cookies. However, I still need to pass this data on further to my installationStore handler, so that I can store this meta data. I don't see how I would go about that, perhaps I need to use the |
I'm creating an
ExpressReceiver
like so:When going to the install route (
/slack/install
), I am correctly forwarded to the Workspace related page to grant permissions.However the
redirect_uri
query param is empty (redirect_uri=
).I don't understand if this is intentional or not, as the documentation reads:
It works as expected if I uncomment the 2 lines in my example.
Should the default redirect uri be part of the query string if omitted from the config?
The text was updated successfully, but these errors were encountered: