Rexit icon indicating copy to clipboard operation
Rexit copied to clipboard

MFA/2FA Support

Open jxmesth opened this issue 1 year ago • 9 comments

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 avatar Apr 17 '24 16:04 jxmesth

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

jxmesth avatar Apr 17 '24 16:04 jxmesth

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!

MPult avatar Apr 17 '24 16:04 MPult

@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.

jxmesth avatar Apr 17 '24 16:04 jxmesth

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

MPult avatar Apr 17 '24 16:04 MPult

@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!

jxmesth avatar Apr 18 '24 15:04 jxmesth

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

MPult avatar Apr 22 '24 06:04 MPult

@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 avatar Apr 22 '24 06:04 jxmesth

@MPult, were you able to figure it out?

jxmesth avatar May 06 '24 10:05 jxmesth

@MPult, Hi, is this still under planning?

jxmesth avatar May 28 '24 14:05 jxmesth