Skip to content
This repository was archived by the owner on Dec 2, 2022. It is now read-only.
This repository was archived by the owner on Dec 2, 2022. It is now read-only.

OAuth (client ID/secret) doesn't work #206

@djbe

Description

@djbe

OAuth doesn't work because a few reasons:

  1. The respone code cannot be extracted from the path (https://github.com/pvzig/SlackKit/blob/main/SKServer/Sources/Conformers/SwifterServer.swift#L60), because the path no longer contains query items. To get those, the property queryParams (a [(String, String)] must be used.
  2. Further it keeps failing with oauth_authorization_url_mismatch, even though the request to slack.com/api/oauth.v2.access contains the same redirect url as configured in the app on slack

The first issue I was able to solve by adding a queryParams to the protocol & struct, and use that instead of extracting query parameters from the path. I'm still stuck with item 2. There may be more issues after that 🤷 It might be related to #203.

Note: I'm trying this with a "legacy" slack app, as otherwise it wouldn't support RTM (see #203)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions