Skip to content

Authentication does not work with new Apps #114

@simonfagerholm

Description

@simonfagerholm

The way PSSlack send the token to slack is no longer supported on newly created apps:
https://api.slack.com/changelog/2020-11-no-more-tokens-in-querystrings-for-newly-created-apps=0

I have confirmed this with slack support.

The Invoke-RestMethod call should either be changed to use arguments -Method POST (confirmed to work) or the token should be included in an authorization header: Header = @{ Authorization = "Bearer $Token" } (also confirmed to word).

Both ways should be backwards compatible according to documentation

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