Auth0 Home Blog Docs

Automate device enrolment process for testing



To whom it may concern,

I’m trying to automate enrolment process through UI using selenium webdriver. My issue is that when I’m seeing the QR code for guardian app I can extract the otpauth URI and have all the necessary params to generate the OTP. Now I’m at the request to associate an authenticator (UI did that for me and QR code is displayed) step and I want to confirm the authenticator association by calling oauth/token with body

{ “client_id”: “YOUR_CLIENT_ID”, “client_secret”: “YOUR_CLIENT_SECRET”, “grant_type”: “”, “mfa_token”: “YOUR_MFA_TOKEN”, “otp”: “000000” }

At the moment that the UI is waiting for an app to scan the QR code I have the secret key so I can generate an OTP which is required for the above call, I have the client_id and the client_secret but I’m missing the mfa_token.

Do you have any idea on how to obtain mfa_token ??
Have I understand correctly the flow of the UI ?


:wave: @evlastos I am not too familiar with using selenium to test out the guardian app. I am going to check with my team to see what the approach would be here!