-
Notifications
You must be signed in to change notification settings - Fork 399
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 endpoints not created #583
Comments
Are you defining your own
|
I am not. I just followed the instructions exactly. Is it required to define a custom receiver? I didn't need to do this to use the events endpoint. |
@jparr721 it isn't required. It is just a common reason for people to run into issues. I need a bit more info to help you debug. Can you share your code initializing App? Once you start your bolt app in terminal, if you go to |
Yes, I get the async function startSlackBot(): Promise<void> {
const slackPort = dotenvValue(DotenvVariable.SlackPort, '8080');
const slackClientId = dotenvValue(DotenvVariable.SlackClientId, '');
const slackSigningSecret = dotenvValue(DotenvVariable.SlackSigningSecret, '');
const slackbotUserSigningToken = dotenvValue(
DotenvVariable.SlackbotUserSigningToken,
'',
);
const organizationPrivateKey = dotenvValue(
DotenvVariable.OrganizationPrivateKey,
'',
);
const bot = new App({
token: slackbotUserSigningToken,
signingSecret: slackSigningSecret,
clientId: slackClientId,
stateSecret: organizationPrivateKey,
scopes: ['channels:history', 'reactions:read', 'bot'],
installationStore: {
storeInstallation,
fetchInstallation,
},
});
await bot.start(slackPort);
} |
@jparr721 you are missing |
@stevengill That seems to have worked flawlessly, to anyone copying my config, I also had to remove the |
could someone Help me with this? I'm super confused about this, here is my code:
the code does not run without |
Description
I followed the documentation here, and I cannot seem to get the oauth module working as is specified. In the docs, it says it sets up the following endpoints:
slack/oauth_redirect
slack/install
However, it appears neither is actually configured. I followed the default config (subbing in my own configs, of course), and have yet to see it return anything other than a
cannot GET...
message. Am I perhaps doing something wrong? Are the docs out of date or perhaps showing for a future release? I would love some guidance here.What type of issue is this? (place an
x
in one of the[ ]
)Requirements (place an
x
in each of the[ ]
)Bug Report
Filling out the following details about bugs will help us solve your issue sooner.
Reproducible in:
package version: 2.2.3
node version: 14.4
OS version(s): Linux pop-os 5.4.0-7634-generic #38
159249712920.04~9a1ea2e-Ubuntu SMP Fri Jun 19 22:43:37 UTC x86_64 x86_64 x86_64 GNU/LinuxSteps to reproduce:
Expected result:
Authentication to work
Actual result:
Great sadness
Attachments:
Logs, screenshots, screencast, sample project, funny gif, etc.
The text was updated successfully, but these errors were encountered: