Page 1 of 1

2FA

Posted: 12 Mar 2020 17:10
by Wibbly
Anyone know a way to get AM to generate 2 factor authentication codes/know of a plugin/have some code?

Re: 2FA

Posted: 12 Mar 2020 19:21
by Desmanto
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

Re: 2FA

Posted: 12 Mar 2020 20:45
by Wibbly
No, I want to emulate Google Authenticator, so flows in AM can see the one time password and the time it's valid for.

Re: 2FA

Posted: 13 Mar 2020 18:44
by Desmanto
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)?

Re: 2FA

Posted: 14 Mar 2020 06:54
by Wibbly
Google Authenticator generates codes. I want those codes to be available to AM, or for AM to generate them in the first place.

Re: 2FA

Posted: 18 Mar 2020 19:05
by Desmanto
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.

Re: 2FA

Posted: 18 Mar 2020 19:17
by Wibbly
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!