-
-
Notifications
You must be signed in to change notification settings - Fork 74
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
Fail to recognize successful login after 2FA Authentication #344
Comments
Could you try using |
If you pull the latest master, you can try selecting User Browser and then choosing the desired browser to login. If you're already logged in in that browser, and slack loads, press Ctrl+R to refresh, and then the token and cookies will be captured by Slackdump. |
@rusq hi, how do you specify browser type? It always chooses edge explorer by default |
Hope this helps? |
For what it is worth, I have this same issue with 3.0.0-alpha. Using either the default interactive flow through Chromium or |
-legacy-browser uses Playwright, which takes a while (more than a minute) to initialise, how long did you wait? Playwright-go does 3 things behind the scenes -
Problem is - it only starts showing the progress when it's downloading the browser, so I would retry and see if in couple of minutes if it works. |
Hmm, but with both the default Chromium flow and the playwright/firefox flow, I see the browser GUI and perform the enterprise SSO 2FA login. Isn't the waiting time you are referring to the set up of the browser, so before this time? |
Must have misread the initial post, so
Then what happens?
|
FWIW -- I am also similarly failing I think although I do not even have 2FA:
but in terminal I only see ❯ ./slackdump workspace new -enterprise -legacy-browser INSTANCE
2024/11/26 11:42:48 INFO Please wait while Playwright is initialising.
2024/11/26 11:42:48 INFO If you're running it for the first time, it will take a couple of minutes... and if I close the browser or just that first initial tab which closes the browser (closing the specific one for the specific workspace - does not close browser):
|
I see the same thing as @yarikoptic. I have access to two enterprise Slack instances (with the same auth method). One of them works fine. That one only has a single workspace. The other that I have problems with opens the workspace selection page after I log in with the browser that |
@yarikoptic, oh, I see now, thanks for the detailed description. Unfortunately it wouldn't work for another tab - the login automation doesn't track other tabs, just the one which it initially opens. Could someone try the following:
Slackdump would be able to intercept the cookies then. |
Unfortunately I cannot test multiple workspace flow, as I don't have access to such an enterprise instance. |
Also, question - why do you use |
🚀 That worked for me, thanks! I don't know if it was the same for yarikoptic, but I only tried the legacy browser option in the hope that it would figure out the authentication after the default option did not seem to work. I think this issue can be closed now though it would be good to document the solution. |
I have pasted that |
Sorry for the long wait. During the login, after the user/password are entered correctly, slackdump (via slackauth) waits for the browser to send an "api.features" api call, and captures the token/cookie value from it. When you have Slack client open and logged in (you can see the channels and conversations) in that tab that Slackdump created, could you try refreshing it and see if that leads to the successful slackdump login? |
Describe the bug
Slackdump fails to recognize successful login that requires 2FA Authentication by university enterprise
Authentication type (please read)
My issue is related to login, the workspace uses SSO
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The command line interface should proceed the login process and start to "export"
Output
It keeps hanging at the line "export: ℹ️ Initialising browser, once the browser appears, login as usual"
Desktop (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: