dylex / slack-libpurple

Slack module for libpurple
GNU General Public License v2.0
280 stars 38 forks source link

Pidgin will not connect to slack #177

Closed vanquishedangel closed 1 year ago

vanquishedangel commented 1 year ago

I feel like I am a newb at this but have used Linux for 20+ years lol. First off I refurbished and ancient Dell latitude D430 sub-notebook 2 gig ram with q4os 64 bit on it and am using it for work. Work uses slack and while slack works, I was looking for something more efficient for the computer.

I am using the version of pidgin that come with Debian bullseye which is 2.14.1-1 and have your plugin installed however when trying to connect to slack it said "unknown_method". I tried updating certificates, not sure I did it correctly, and I went to download a newer version of pidgin from their website but I can not for the life of me find where to download the source in their instructions.

I tried the token method but it then said invalid json response. I have read that you can switch to to "form data" instead of Json but I have no clue what that means.

Red Sentences in Debug: (21:39:20) GLib-GObject: g_object_unref: assertion 'G_IS_OBJECT (object)' failed

(21:42:13) nss: partial certificate chain

dylex commented 1 year ago

You may be running into #173 where some slacks are now rejecting password authentication. That issue has some suggestions for working around this, but we don't have a great solution at the moment (and I haven't run into it myself).

vanquishedangel commented 1 year ago

I got it to work!

I tried your hack but due to my lack of experience I am not sure I did it correctly! I cloned the git to my home folder and on the web page selected "finduserhack". I went with the first one and copied the raw data for slack.auth.c and before building the plugin I pasted what i copied into slack.auth.c. I then built it following your instructions.

I did use the process to extract the API tokens from the browser but those did not work. I then looked up how to find the user ID in slack (open the slack workspace, click on your profile icon and select profile, then click the three dots that appear, then select "copy member ID") and copied that in the username field, and with my password, they all worked, all three of my slack workspaces worked!

Thank you so much for this plugin!

I was getting confused by all the different instructions I read in all the different threads and many were choppy and I was not sure who all did what exactly. So here is exactly what I did.

vanquishedangel commented 1 year ago

update: it is working great and the hack for slack.auth.c was not needed it appears (i replaced it with an old copy and it is still working). However, the message tree is messed up and "reply in thread" replies appear at the bottom of the chat. That is the only complaints (and I can not message files yet).

So they need member ID's and passwords it seems.