# Synthetic Monitor - MFA Authentication

**URL:** <https://community.dynatrace.com/t/synthetic-monitor-mfa-authentication/39651>\
**Category:** Synthetic Monitoring\
**Tags:** data-privacy-and-product-security, synthetic-monitoring\
**Created:** [May 9, 2023, 5:09pm UTC](https://community.dynatrace.com/t/synthetic-monitor-mfa-authentication/39651 "2023-05-09T17:09:14Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![saldrich](https://avatars.discourse-cdn.com/v4/letter/s/58956e/32.png) [@saldrich](https://community.dynatrace.com/u/saldrich)\
**Post date:** [May 9, 2023, 5:09pm UTC](https://community.dynatrace.com/t/synthetic-monitor-mfa-authentication/39651/1 "2023-05-09T17:09:14Z")

</div>

Hello DT Community Team,

Recently we have been working on enhancing our DEM using synthetics and the 2 business critical applications that we are working on have higher levels of Security. Application admins that gave us credentials to use for these 2 apps have enough access to give us local accounts to use, but the truth is in production environment most of our clients are signed up for multi-factor auth (MFA) either using SMS OTP or Authenticator. More and more apps will be moving to MFA for higher security.

The challenge is how do we incorporate MFA as part of synthetics? Originally I thought of using JS API call to GET the OTP directly from the RSA server but that’s not easily feasibly or in some cases its not feasible at all to get OTP using API call.

Please let me know your thoughts.

Let me know if you require any further information from us.

---

<div class="post-metadata">

**Author:** ![saldrich](https://avatars.discourse-cdn.com/v4/letter/s/58956e/32.png) [@saldrich](https://community.dynatrace.com/u/saldrich)\
**Post date:** [May 9, 2023, 5:12pm UTC](https://community.dynatrace.com/t/synthetic-monitor-mfa-authentication/39651/2 "2023-05-09T17:12:50Z")

</div>

One of our use cases would actually be to verify the MFA service to make sure its up and running.

---

<div class="post-metadata">

**Author:** ![DanielS](https://avatars.discourse-cdn.com/v4/letter/d/3ab097/32.png) [@DanielS](https://community.dynatrace.com/u/DanielS)\
**Post date:** [May 9, 2023, 5:32pm UTC](https://community.dynatrace.com/t/synthetic-monitor-mfa-authentication/39651/3 "2023-05-09T17:32:57Z")

</div>

Hi [@saldrich](https://community.dynatrace.com/user/61436) in my case, I need to obtain a token that in another step I was able to use to start the session.

I leave you a [link](https://community.dynatrace.com/topic/119500) to this post that could be useful to you.

---

<div class="post-metadata">

**Author:** ![dannemca](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/dannemca/32/7215_2.png) [@dannemca](https://community.dynatrace.com/u/dannemca)\
**Post date:** [May 9, 2023, 7:35pm UTC](https://community.dynatrace.com/t/synthetic-monitor-mfa-authentication/39651/4 "2023-05-09T19:35:51Z")

</div>

I am using an OTP generator app in node.js, hosted in a container, to provide the OTP code based on the user details (same code used by auth apps like google auth).

I have created a js event to call the OTP generator app, get the code, stores in a var, and in the next event, keystroke the var in the OTP field.

The link [@DanielS](https://community.dynatrace.com/user/35788) posted should do the job you need.

---

<div class="post-metadata">

**Author:** ![Akli](https://avatars.discourse-cdn.com/v4/letter/a/82dd89/32.png) [@Akli](https://community.dynatrace.com/u/Akli)\
**Post date:** [November 20, 2024, 10:46am UTC](https://community.dynatrace.com/t/synthetic-monitor-mfa-authentication/39651/5 "2024-11-20T10:46:31Z")

</div>

Hello&nbsp;[@dannemca](https://community.dynatrace.com/user/18264)

it is possible to share with us the script ? I have the same need with google authenticator in browser click path. i have created in script that worked in browser but not in dynatrace.  
thank you.

---

<div class="post-metadata">

**Author:** ![dannemca](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/dannemca/32/7215_2.png) [@dannemca](https://community.dynatrace.com/u/dannemca)\
**Post date:** [November 21, 2024, 1:06pm UTC](https://community.dynatrace.com/t/synthetic-monitor-mfa-authentication/39651/6 "2024-11-21T13:06:46Z")

</div>

Sorry, Akli, but I don’t have it anymore, it was created by a client I support in past, and I am not working there anymore.
