[GH-ISSUE #604] Issue in slack oauth redirect uri #441

Closed
opened 2026-02-25 23:42:27 +03:00 by kerem · 1 comment
Owner

Originally created by @arihantdaga on GitHub (Jan 27, 2022).
Original GitHub issue: https://github.com/healthchecks/healthchecks/issues/604

I tried to follow the instructions for slack integration
I configured redirect uri in my slack app. And gave correct client id and client secret, however when trying to click add slack, getting this error from slack -

redirect_uri did not match any configured URIs. Passed URI:

Basically, redict uri is going as blank. I later checked the code also, in the add_slack_btn view ->

authorize_url = "https://slack.com/oauth/v2/authorize?" + urlencode(
        {
            "scope": "incoming-webhook",
            "client_id": settings.SLACK_CLIENT_ID,
            "state": state,
        }
    )

Shouldn't it also send redirect_uri in the request for getting authorization_code ?

Originally created by @arihantdaga on GitHub (Jan 27, 2022). Original GitHub issue: https://github.com/healthchecks/healthchecks/issues/604 I tried to follow the instructions for slack integration I configured redirect uri in my slack app. And gave correct client id and client secret, however when trying to click add slack, getting this error from slack - ``` redirect_uri did not match any configured URIs. Passed URI: ``` Basically, redict uri is going as blank. I later checked the code also, in the add_slack_btn view -> ```Python authorize_url = "https://slack.com/oauth/v2/authorize?" + urlencode( { "scope": "incoming-webhook", "client_id": settings.SLACK_CLIENT_ID, "state": state, } ) ``` Shouldn't it also send redirect_uri in the request for getting authorization_code ?
kerem closed this issue 2026-02-25 23:42:28 +03:00
Author
Owner

@arihantdaga commented on GitHub (Jan 27, 2022):

My bad. I forgot to save urls.
It works.

<!-- gh-comment-id:1023601387 --> @arihantdaga commented on GitHub (Jan 27, 2022): My bad. I forgot to save urls. It works.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/healthchecks#441
No description provided.