2FA

Post your questions and help other users.

Moderator: Martin

Post Reply
Wibbly
Posts: 358
Joined: 17 Mar 2014 09:02

2FA

Post by Wibbly » 12 Mar 2020 17:10

Anyone know a way to get AM to generate 2 factor authentication codes/know of a plugin/have some code?

User avatar
Desmanto
Posts: 2599
Joined: 21 Jul 2017 17:50

Re: 2FA

Post by Desmanto » 12 Mar 2020 19:21

Do you mean to generate a random code to be used as 2fa in google authenticator? There seems to be some java to do it. Is this what you want?
https://medium.com/@ihorsokolyk/two-fac ... 7ea15ffee6
Index of Automagic useful thread List of my other useful posts (and others')
Xiaomi Redmi Note 5 (whyred), AOSP Extended v6.7 build 20200310 Official, Android Pie 9.0, Rooted.

Wibbly
Posts: 358
Joined: 17 Mar 2014 09:02

Re: 2FA

Post by Wibbly » 12 Mar 2020 20:45

No, I want to emulate Google Authenticator, so flows in AM can see the one time password and the time it's valid for.

User avatar
Desmanto
Posts: 2599
Joined: 21 Jul 2017 17:50

Re: 2FA

Post by Desmanto » 13 Mar 2020 18:44

Hmm, sorry I still don't understand fully yet, never use Google Authenticator. I use 2fa, but that is sent via SMS, not app. What i understand is that the Google authenticator act just like a token generator. At first setup, it will pair up with your account. So at the next time you generate some code at the google authenticator, it can be used as the 2fa code to login anywhere else. The phone become a 2fa token generator.

What I understand is you want to emulate google authenticator using a flow, so you don't need to install Google authenticator anymore. You can generate the code directly using flow. Is that correct? (if yes, then the link above should be the way. But it is filled with java, I still have problem to translate that into Automagic's script)

Or do you mean Automagic open google authenticator, retrieve the 2fa code generated by google authenticator and then use this 2fa code to login somewhere else (maybe using http request)?
Index of Automagic useful thread List of my other useful posts (and others')
Xiaomi Redmi Note 5 (whyred), AOSP Extended v6.7 build 20200310 Official, Android Pie 9.0, Rooted.

Wibbly
Posts: 358
Joined: 17 Mar 2014 09:02

Re: 2FA

Post by Wibbly » 14 Mar 2020 06:54

Google Authenticator generates codes. I want those codes to be available to AM, or for AM to generate them in the first place.

User avatar
Desmanto
Posts: 2599
Joined: 21 Jul 2017 17:50

Re: 2FA

Post by Desmanto » 18 Mar 2020 19:05

So it can be both. If you want to get the code from google Authenticatior, you can use Control UI to get the element text. But you have the GA installed, since Automagic will retrieve the code only. For AM to generate them require java from my link above, it is still beyond my current level to translate it into working flow.
Index of Automagic useful thread List of my other useful posts (and others')
Xiaomi Redmi Note 5 (whyred), AOSP Extended v6.7 build 20200310 Official, Android Pie 9.0, Rooted.

Wibbly
Posts: 358
Joined: 17 Mar 2014 09:02

Re: 2FA

Post by Wibbly » 18 Mar 2020 19:17

Desmanto wrote:
18 Mar 2020 19:05
For AM to generate them require java from my link above, it is still beyond my current level to translate it into working flow.
Thanks for looking - I have the same problem!

Post Reply