Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Authentication doesn't work #62

Open
jumarko opened this issue Jan 5, 2023 · 0 comments
Open

Authentication doesn't work #62

jumarko opened this issue Jan 5, 2023 · 0 comments

Comments

@jumarko
Copy link
Contributor

jumarko commented Jan 5, 2023

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: curiousprogrammer-net/slack-pom@f998e92#diff-1a6ed93c553296dc723c8009dc2fd60183c5a3c00d4b50b6ca511fbdead178ccR20

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant