# Monitoring http with Oauth2.0 with callback URL with authorization code

**URL:** <https://community.dynatrace.com/t/monitoring-http-with-oauth2-0-with-callback-url-with-authorization-code/37614>\
**Category:** Synthetic Monitoring\
**Tags:** http-monitor, synthetic-monitoring\
**Created:** [December 8, 2022, 5:25am UTC](https://community.dynatrace.com/t/monitoring-http-with-oauth2-0-with-callback-url-with-authorization-code/37614 "2022-12-08T05:25:09Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![MKnie](https://avatars.discourse-cdn.com/v4/letter/m/b38774/32.png) [@MKnie](https://community.dynatrace.com/u/MKnie)\
**Post date:** [December 8, 2022, 5:25am UTC](https://community.dynatrace.com/t/monitoring-http-with-oauth2-0-with-callback-url-with-authorization-code/37614/1 "2022-12-08T05:25:09Z")

</div>

I am trying to implement http url monitor for an api endpoint which implements **OpenID Connect (OIDC)&nbsp; Single Sign On (SSO)**&nbsp;login. This involves identity layer authorization with server ( **via Browser IDP** ) + token-based authentication.

Authorization code grant type requires the user to authenticate with the provider—an authorization code is then sent back to the client app, extracted, and exchanged with the provider for an access token to authenticate later requests.

To use authorization code grant type, enter a&nbsp; **Callback URL** &nbsp;for your client application (which needs to be registered with the API provider), together with various details provided by the API service including&nbsp; **Auth URL** ,&nbsp; **Access Token URL** ,&nbsp; **Client ID** , and&nbsp; **Client Secret**.

Is this something achievable with Dynatrace monitoring or it just supports basic Oauth 2.0

---

<div class="post-metadata">

**Author:** ![ChadTurner](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/chadturner/32/161_2.png) [@ChadTurner](https://community.dynatrace.com/u/ChadTurner)\
**Post date:** [February 10, 2023, 1:29pm UTC](https://community.dynatrace.com/t/monitoring-http-with-oauth2-0-with-callback-url-with-authorization-code/37614/2 "2023-02-10T13:29:44Z")

</div>

[@MKnie](https://community.dynatrace.com/user/57736)&nbsp;were you able to get this monitoring set up?

---

<div class="post-metadata">

**Author:** ![fstekelenburg](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/fstekelenburg/32/22029_2.png) [@fstekelenburg](https://community.dynatrace.com/u/fstekelenburg)\
**Post date:** [February 17, 2023, 9:00am UTC](https://community.dynatrace.com/t/monitoring-http-with-oauth2-0-with-callback-url-with-authorization-code/37614/3 "2023-02-17T09:00:52Z")

</div>

interested in this as well

---

<div class="post-metadata">

**Author:** ![agata.wlodarczyk](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/agata.wlodarczyk/32/22_2.png) [@agata.wlodarczyk](https://community.dynatrace.com/u/agata.wlodarczyk)\
**Post date:** [July 13, 2023, 5:44pm UTC](https://community.dynatrace.com/t/monitoring-http-with-oauth2-0-with-callback-url-with-authorization-code/37614/4 "2023-07-13T17:44:52Z")

</div>

[@MKnie](https://community.dynatrace.com/user/57736)&nbsp;any news to share?

---

<div class="post-metadata">

**Author:** ![lawrence\_cuneaz](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/lawrence_cuneaz/32/1053_2.png) [@lawrence\_cuneaz](https://community.dynatrace.com/u/lawrence_cuneaz)\
**Post date:** [February 8, 2024, 3:59pm UTC](https://community.dynatrace.com/t/monitoring-http-with-oauth2-0-with-callback-url-with-authorization-code/37614/5 "2024-02-08T15:59:24Z")

</div>

Hi Dynatrace Community, a customer of mine sent me this so wanted to add my thoughts since I think I can help.

I am not an expert in Oath2 but have dabbled in custom scripting for synthetics. Correct me if I’m wrong but sounds like you need the ability pull authentication details from the response of a request and pass it to a preceding requests and authenticate via Oath2?

If these are the 2 requirements then I can confirm both are supported.  
Oath2 support:&nbsp;[Supported authentication methods in Synthetic Monitoring Classic — Dynatrace Docs](https://docs.dynatrace.com/docs/shortlink/synthetic-authentication#oauth2)

Pass variables between synthetic steps:&nbsp;[Pre- and post-execution scripts for HTTP monitors in Classic — Dynatrace Docs](https://docs.dynatrace.com/docs/shortlink/http-monitor-pre-post-script#variables)

 ![lawrence_cuneaz_0-1707407721645.png](https://global.discourse-cdn.com/dynatrace/original/3X/3/5/35b080796472cc6fe2b2765b0fb24ad953a9b1ce.png)

 ![lawrence_cuneaz_2-1707407777451.png](https://global.discourse-cdn.com/dynatrace/original/3X/4/5/45a4009c74c12d8422d4aacc6cabe919c700adca.png)

[@MKnie](https://community.dynatrace.com/user/57736)&nbsp;Does this meet your need?

---

<div class="post-metadata">

**Author:** ![RajSamant](https://avatars.discourse-cdn.com/v4/letter/r/6f9a4e/32.png) [@RajSamant](https://community.dynatrace.com/u/RajSamant)\
**Post date:** [May 22, 2025, 4:25am UTC](https://community.dynatrace.com/t/monitoring-http-with-oauth2-0-with-callback-url-with-authorization-code/37614/6 "2025-05-22T04:25:14Z")

</div>

I think the OAuth2.0 authorization supported here in Dynatrace only works with a grant\_type of password which is a deprecated grant\_type in OAuth2.0 and is not recommended.
