question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

OAuth redirect after slack bot install does not pass temporary auth code

See original GitHub issue

Version

4.12.2

Describe the bug

Installing a Slack Bot does not pass the temporary auth code to the landing page.

I’m working on a Slack Bot using Azure Bot Service and the .NET Bot Framework. In Slack I have the redirect URL set to https://slack.botframework.com per the docs.

In Azure Bot Service, I have a Landing Page URL set up to my site. When I install my bot into Slack, Slack redirects to https://slack.botframework.com which redirects to my landing page url and passes two parameters in the query string, teamid and signature. So far so good.

The problem is that in the first redirect, Slack is passing a code parameter. This is a temporary authorization code per the Slack docs. I expected https://slack.botframework.com to pass this code along to the landing page URL. Instead it passes a teamid and a signature. I understand what the teamid is, but cannot find any documentation of signature and what it’s used for.

To Reproduce

Steps to reproduce the behavior:

  1. Install a Slack Bot built with Azure Bot Service into Slack

Expected behavior

The final redirect to the landing page URL would contain the Slack temporary auth code.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:7

github_iconTop GitHub Comments

1reaction
stevkancommented, Apr 14, 2021

@haacked, thank you for your patience. I’ve been able to set up the environment and am working on repro’ing the issue. I hope to have an update for you by EOD, possibly tomorrow.

0reactions
haackedcommented, Apr 22, 2021

@stevkan thanks for the response!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Installing with OAuth - Slack API
The redirect_uri is where Slack will send the user back to, along with the temporary authorization code, once the user okays your app....
Read more >
oauth/authorize does not send a code in the payload
If the user authorizes your app, Slack will redirect back to your specified redirect_uri with a temporary code in a code GET parameter, ......
Read more >
Why Slack doesn't redirect me to predefined redirect URL if I ...
1 Answer 1 · User clicks the install button · User authorizes through Slack UI · Slack redirects to your desired URL ·...
Read more >
oauth-tutorial/oauth.md at master - GitHub
Slack OAuth setup tutorial using a simple slash command bot ... to obtain a temporary code , then use the code to get...
Read more >
OAuth Modules — Python Slack SDK
With Bolt, you don't need to implement most of the following code on your own. ... OAuth lets a user in any Slack...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found