<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Automatic Login to Dynatrace Dashboards from External Application in Dashboarding</title>
    <link>https://community.dynatrace.com/t5/Dashboarding/Automatic-Login-to-Dynatrace-Dashboards-from-External/m-p/271772#M4828</link>
    <description>&lt;P&gt;It's my understanding that the authentication and access controls that Dynatrace has implemented are intended to specifically exclude the possibility of persisting a single session across multiple browsers or users, as this would compromise security in a myriad of ways.&amp;nbsp;&lt;/P&gt;&lt;P&gt;That said, did you say that you use an identity provider (IDP) for SSO? If so, you might be able to construct a deep-link that gets users into the dashboard via the IDP without the need to physically enter credentials. Something like &lt;A href="https://community.dynatrace.com/" target="_blank"&gt;https://&amp;lt;IDP_URL&amp;gt;/&amp;lt;Dynatrace app path&amp;gt;?target=&amp;lt;direct dashboard URL&amp;gt;&lt;/A&gt;. The feasibility of such an approach (and the way you would have to construct the URL) will depend on your specific IDP of course.&lt;/P&gt;</description>
    <pubDate>Thu, 06 Mar 2025 17:57:59 GMT</pubDate>
    <dc:creator>marco_irmer</dc:creator>
    <dc:date>2025-03-06T17:57:59Z</dc:date>
    <item>
      <title>Automatic Login to Dynatrace Dashboards from External Application</title>
      <link>https://community.dynatrace.com/t5/Dashboarding/Automatic-Login-to-Dynatrace-Dashboards-from-External/m-p/271667#M4826</link>
      <description>&lt;P&gt;I am trying to integrate Dynatrace Dashboards into my custom application (Angular frontend, NestJS backend). Right now, I have a dropdown with hardcoded Dynatrace dashboard links, but when users click them, they are required to log in manually. SSO is enabled in our log&lt;/P&gt;
&lt;P&gt;My Requirement:&lt;BR /&gt;I want to enable automatic authentication so that when a user logs into my app, they can directly access the Dynatrace dashboards as I will be using a service account. Ideally, I will be using a service account and want to authenticate users before they click on my dynatrace dashboard link. Basically I want to authenticate them with my account because not every user will have access to the dashborad but the service account we create will have and would use that account.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My question is does Dynatrace allow authentication using an API or programmatically sign in once, so dynatrace dashboard when it opens, it opens in a new window using the authenticated session.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What I Tried:&lt;/P&gt;
&lt;P&gt;As suggested in one of the community post &lt;A href="https://community.dynatrace.com/t5/Dashboarding/Automatic-login-on-Dynatrace-web-dashboard/m-p/94312/highlight/true#M352" target="_self"&gt;here&lt;/A&gt;, I tried manual login via POST which does not work as I have Dynatrace SaaS (&lt;A href="https://community.dynatrace.com/t5/Dashboarding/Automatic-login-on-Dynatrace-web-dashboard/m-p/94312/highlight/true#M352" target="_blank" rel="noopener"&gt;Solved: Re: Automatic login on dynatrace web dashboard - Dynatrace Community&lt;/A&gt;)&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Manual login via POST form submission (Didn’t work)&lt;/P&gt;
&lt;P&gt;I attempted to submit credentials via an HTML form, but it resulted in a 405 Method Not Allowed error.&lt;BR /&gt;After researching, I learned that Dynatrace SaaS does not allow direct login via POST requests.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Embedding a dashboard in an iframe also does not work and is not supported by dynatrace.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Selenium-based automation (Not an option)&lt;/P&gt;
&lt;P&gt;I found in this post -&amp;nbsp;&lt;A href="https://community.dynatrace.com/t5/Dashboarding/Automatic-login-on-Dynatrace-web-dashboard/m-p/94312/highlight/true#M352" target="_blank" rel="noopener"&gt;Solved: Re: Automatic login on dynatrace web dashboard - Dynatrace Community&amp;nbsp;&lt;/A&gt;that used Selenium to auto-login. However, I cannot use Selenium because my backend is deployed on OpenShift, and running a browser on the server is not possible.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;My Questions:&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;1) Does Dynatrace provide an API for SSO login or automatic authentication?&lt;/P&gt;
&lt;P&gt;2) Can I authenticate via an API and generate a session token to append to dashboard URLs?&lt;/P&gt;
&lt;P&gt;3) Can a service account be used to persist a session across users?&lt;/P&gt;
&lt;P&gt;4) If I obtain a service account, is there a way to use its credentials so that users clicking the dashboard links are authenticated automatically ?&lt;/P&gt;
&lt;P&gt;5) Are there alternative ways to authenticate users before redirecting them to a dashboard?&lt;/P&gt;
&lt;P&gt;6) If I store an authentication cookie or token, will Dynatrace allow session persistence across different users?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;FYI, I am aware I can fetch data from the dynatrace api for the dashboards intergration and I have also tried that. But due to our dynatrace dashboards being complex with alot of data, we have decided to use a service account and now I am trying to authenticate user with that service account and redirect them to the dashboards linked in my app.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Would really appreciate any guidance or solutions that others have used and sorry if the information is too much to read.&lt;/P&gt;
&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Mar 2025 08:58:52 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dashboarding/Automatic-Login-to-Dynatrace-Dashboards-from-External/m-p/271667#M4826</guid>
      <dc:creator>Kulkirat</dc:creator>
      <dc:date>2025-03-06T08:58:52Z</dc:date>
    </item>
    <item>
      <title>Re: Automatic Login to Dynatrace Dashboards from External Application</title>
      <link>https://community.dynatrace.com/t5/Dashboarding/Automatic-Login-to-Dynatrace-Dashboards-from-External/m-p/271772#M4828</link>
      <description>&lt;P&gt;It's my understanding that the authentication and access controls that Dynatrace has implemented are intended to specifically exclude the possibility of persisting a single session across multiple browsers or users, as this would compromise security in a myriad of ways.&amp;nbsp;&lt;/P&gt;&lt;P&gt;That said, did you say that you use an identity provider (IDP) for SSO? If so, you might be able to construct a deep-link that gets users into the dashboard via the IDP without the need to physically enter credentials. Something like &lt;A href="https://community.dynatrace.com/" target="_blank"&gt;https://&amp;lt;IDP_URL&amp;gt;/&amp;lt;Dynatrace app path&amp;gt;?target=&amp;lt;direct dashboard URL&amp;gt;&lt;/A&gt;. The feasibility of such an approach (and the way you would have to construct the URL) will depend on your specific IDP of course.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Mar 2025 17:57:59 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dashboarding/Automatic-Login-to-Dynatrace-Dashboards-from-External/m-p/271772#M4828</guid>
      <dc:creator>marco_irmer</dc:creator>
      <dc:date>2025-03-06T17:57:59Z</dc:date>
    </item>
  </channel>
</rss>

