Skip to content
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

MFA/2FA Support #101

Open
jxmesth opened this issue Apr 17, 2024 · 9 comments
Open

MFA/2FA Support #101

jxmesth opened this issue Apr 17, 2024 · 9 comments
Labels
enhancement New feature or request

Comments

@jxmesth
Copy link

jxmesth commented Apr 17, 2024

Motivations

Please add support for accounts with MFA/2FA enabled.

  • Would you like to implement this feature? [y/n]
    I'm not sure I'd be able to (N).

Solution

Support for accounts with MFA/2FA enabled. Ideally, the CLI should ask for the 2FA code.

Alternatives

Using token based auth, but I was unable to figure out how this works.

@jxmesth jxmesth added the enhancement New feature or request label Apr 17, 2024
@jxmesth
Copy link
Author

jxmesth commented Apr 17, 2024

@MPult, please let me know if you're able to do this. Thanks.

@MPult
Copy link
Owner

MPult commented Apr 17, 2024

wow i did i not think of this at all. definitely going on the todo list, but this will take quite some time as im busy.

thank you for the suggestion!

@jxmesth
Copy link
Author

jxmesth commented Apr 17, 2024

@MPult, of course, thanks for getting back to me so quick on this. Can I use the token method as a workaround for now?
Could you please explain how I can extract the token?

I wasn't able to figure it out.

@MPult
Copy link
Owner

MPult commented Apr 17, 2024

So the bearer token should accompany any request you make on the reddit page after logging in. so once logged in you'd have to check the network tab of the console, there you'd be able to find the token under authorisation

@jxmesth
Copy link
Author

jxmesth commented Apr 18, 2024

@MPult, thanks but for some reason I'm still not able to find it under the network tab or the application tab as well. Is it supposed to be under 'Response Headers' or something else maybe?

I'd def appreciate it of if could add steps to do this to the Wiki or something until you can implement the MFA/2FA support.

Thanks a lot!

@MPult
Copy link
Owner

MPult commented Apr 22, 2024

I got good and bad news:

Good: I found out how to implement MFA

Bad: Reddit fundamentally changed the login process; it will take quite some time to reverse engineer it

@jxmesth
Copy link
Author

jxmesth commented Apr 22, 2024

@MPult, thanks for taking a look at this. I'm gonna choose to focus on the good news for now haha. Hopefully you're able to decipher the login process. All the best!

@jxmesth
Copy link
Author

jxmesth commented May 6, 2024

@MPult, were you able to figure it out?

@jxmesth
Copy link
Author

jxmesth commented May 28, 2024

@MPult, Hi, is this still under planning?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants