clj-slack icon indicating copy to clipboard operation
clj-slack copied to clipboard

Authentication doesn't work

Open jumarko opened this issue 1 year ago • 0 comments

It seems that the auth style used by the library, namely passing token in query params no longer works:

{:error "invalid_auth", :response {:ok false, :error "invalid_auth"}}

You need to pass the token in the Authorization header. Afaik, the easiest way to do this is to use the :oauth-token param accepted by clj-http. Here's what I ended up using: https://github.com/curiousprogrammer-net/slack-pom/commit/f998e925fdeea04cf71a9d251bd9f29e6a7ee117#diff-1a6ed93c553296dc723c8009dc2fd60183c5a3c00d4b50b6ca511fbdead178ccR20

jumarko avatar Jan 05 '23 12:01 jumarko