yuya373 / emacs-slack

slack client for emacs
1.11k stars 117 forks source link

Authentication error #553

Open pati-ni opened 3 years ago

pati-ni commented 3 years ago

Authentication using token retrieval through the javascript console is not working:

https://github.com/wee-slack/wee-slack/issues/844

Is there any other method available?

CommanderAsdasd commented 3 years ago

https://github.com/yuya373/emacs-slack/pull/552 Here is PR about "xoxc-" type tokens

pati-ni commented 3 years ago

I can confirm that the patch successfully authenticates

pataquets commented 3 years ago

Having the same issue, PR solved it.

aculich commented 2 years ago

This issue can be closed now that PR #552 has been merged.

parsoj commented 2 years ago

Having the same issue - but looking up the d cookie and adding it as the :cookie param isn't solving it for me:

[2021-11-29 13:46:02] [trace] REQUEST FINISHED. URL: "https://slack.com/api/rtm.connect", PARAMS: (("mpim_aware" . "1") ("presence_sub" . "true")), DATA: (:ok :json-false :error "invalid_auth") - <company name> 
[2021-11-29 13:50:04] [error] An Error occured while closing websocket connection: (wrong-type-argument websocket nil) - <company name> 
aculich commented 2 years ago

@parsoj are you on osx? I'm having the same issue on my osx installation, but my earlier Linux installation works fine with my original patch., so I'm trying to figure out why it works in one place and not the other.

eggcaker commented 2 years ago

Same here , I'm on windows , it was working before with cookie d things , after update to latest master it's not working with invalid_auth

alex-wellbelove commented 2 years ago

Emojme is working for me, but not emacs-slack.

Commenting out the '--cookie cookie-jar' bit in here is a (really bad) workaround: https://github.com/tkf/emacs-request/blob/master/request.el#L863

parsoj commented 2 years ago

@aculich - Sorry only just circling back on this!

I am in fact on OSX. This is just a guess - but in the past I've run into some issues with some https-related c libraries that got compiled in when you built emacs on OSX/clang?

I might poke around a bit again just to see if anything new comes up with another attempt...