-
Notifications
You must be signed in to change notification settings - Fork 19
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
Getting Connection Timeout Trying to Setup new Connection #130
Comments
Hi @securityinsanity , thanks for your feedback! The first thing that looks odd to me is the empty Slack websocket URL on the third line of the log, where it says "Using URL:", there I expect something like wss://cerberus-xxxx.lb.slack-msgs.com/websocket/XXXX (where XXXX is specific to your connection). In this case there seems to be just a newline instead. This comes from the slack library rather than from irc-slack directly. Then there is "invalid_auth". From Slack's API documentation:
I would safely assume that this is not a disallowed IP address issue, so the other option is "invalid token". To rule out any client issue, could you try the same process using |
Also can you confirm that the token you obtain with |
Hey! @insomniacslk , Autotoken doesn't seem to work for me (I believe it's because I have MFA!). However the tokens I have are in the format:
Using irssi I get the same result which (is good(?)):
|
Yes, MFA would make autotoken fail (and it should be possible to add support for it). Since you've used the manual procedure, it's still possible that the token is invalid. When I was developing autotoken, the first few times I copied the percent-encoded string instead of the decoded string. In the browser console the token can show up in both ways, depending on where it was copied from. Could you please check that you have a non-percent-encoded cookie? |
I can confirm there is no percents in the cookie value (or in the xoxc- value). The cookie seems to be a valid base64 string. Anyway I can perhaps try manually using the cookie with curl, or something of the like to validate it's correctness? |
I disabled mfa and used autotoken, and it looks like it actually wanted the percent encoded value for me, and not the non-percent encoded value. |
@securityinsanity I have implemented MFA support in |
Thanks @insomniacslk , seems to be working for me so I can re-enable MFA. I appreciate your work on this! |
I can confirm the cookie value needs to be percent-encoded, or otherwise causes an auth failure. |
Hey! Thanks for this tool. I'm just getting started, so I may be doing something wrong, but I seem to be running into an issue trying to setup a connection.
I've gone ahead, and grabbed a token/cookie value from my browser, and set them as my IRC Password, however I'm still getting a failure to conenct. Upon turning on debug logging I see:
I'm pretty certain I've copied both the cookie, and token correctly, but am unsure of how to validate the rest of the setup/the token itself. Any help is appreciated,
thanks!
The text was updated successfully, but these errors were encountered: