rusq / slackdump

Save or export your private and public Slack messages, threads, files, and users locally without admin privileges.
GNU General Public License v3.0
1.6k stars 72 forks source link

Fail to recognize successful login after 2FA Authentication #344

Closed lsy641 closed 2 weeks ago

lsy641 commented 3 weeks ago

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:

  1. Run slackdump like this 'go run .\cmd\slackdump\ export -enterprise https://app.slack.com/client/E029PC1PHFX -legacy-browser'
  2. Type workspace name: umich.enterprise
  3. Login by choosing Other/Manual
  4. A browser bounces out and asks me to login with the university account and password
  5. 2FA authentication via DUO Mobile app
  6. Successfully login the workspace and redirect the page to the workspace page.

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.

rusq commented 2 weeks ago

Could you try using Google at step 3, and let me know? If it doesn't work, could you try "-legacy-browser" flag as described: https://github.com/rusq/slackdump/wiki/EZ-Login-3000#using-playwright-instead-of-rod?

rusq commented 2 weeks ago

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.

lsy641 commented 2 weeks ago

@rusq hi, how do you specify browser type? It always chooses edge explorer by default

rusq commented 2 weeks ago

@lsy641 out

Hope this helps?