<?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: User Token Forwarding Between App? in Administration &amp; Architecture</title>
    <link>https://community.databricks.com/t5/administration-architecture/user-token-forwarding-between-app/m-p/135019#M4223</link>
    <description>&lt;P&gt;Yes I've been using On behalf of user authorization the whole time.&lt;/P&gt;</description>
    <pubDate>Wed, 15 Oct 2025 15:25:43 GMT</pubDate>
    <dc:creator>ctgchris</dc:creator>
    <dc:date>2025-10-15T15:25:43Z</dc:date>
    <item>
      <title>User Token Forwarding Between App?</title>
      <link>https://community.databricks.com/t5/administration-architecture/user-token-forwarding-between-app/m-p/134861#M4211</link>
      <description>&lt;P&gt;I have a streamlit databricks app that is intended to be a frontend UI app. I also have a FastAPI databricks app that is intended to be a middleware app. I want my streamlit app to query the middleware app for all business logic and databrick queries. However, I'm stuck on a issue where I want the middleware app to get a user's permission groups that they are assigned to. Is there no approach where I can have the middleware have the same user authenticaton as the streamlit frontend app?&lt;/P&gt;</description>
      <pubDate>Tue, 14 Oct 2025 13:33:44 GMT</pubDate>
      <guid>https://community.databricks.com/t5/administration-architecture/user-token-forwarding-between-app/m-p/134861#M4211</guid>
      <dc:creator>ctgchris</dc:creator>
      <dc:date>2025-10-14T13:33:44Z</dc:date>
    </item>
    <item>
      <title>Re: User Token Forwarding Between App?</title>
      <link>https://community.databricks.com/t5/administration-architecture/user-token-forwarding-between-app/m-p/135016#M4220</link>
      <description>&lt;DIV class="prose text-pretty dark:prose-invert inline leading-relaxed break-words min-w-0 [word-break:break-word] prose-strong:font-medium"&gt;
&lt;P class="my-2 [&amp;amp;+p]:mt-4 [&amp;amp;_strong:has(+br)]:inline-block [&amp;amp;_strong:has(+br)]:pb-2"&gt;Hey ctgchris! Yes — you can have both apps share the same user authentication in Databricks. Use &lt;STRONG&gt;on-behalf-of-user (OBO)&lt;/STRONG&gt; authentication so your FastAPI middleware receives the user’s identity and permissions from the Streamlit frontend. Databricks automatically sends a user token (via the &lt;CODE&gt;x-forwarded-access-token&lt;/CODE&gt; header), which Streamlit can forward to FastAPI. Then FastAPI validates that token and performs queries or logic under that user’s permissions.​&lt;/P&gt;
&lt;P class="my-2 [&amp;amp;+p]:mt-4 [&amp;amp;_strong:has(+br)]:inline-block [&amp;amp;_strong:has(+br)]:pb-2"&gt;In short:&lt;/P&gt;
&lt;P class="my-2 [&amp;amp;+p]:mt-4 [&amp;amp;_strong:has(+br)]:inline-block [&amp;amp;_strong:has(+br)]:pb-2"&gt;- Streamlit grabs the user token from request headers.&lt;/P&gt;
&lt;P class="my-2 [&amp;amp;+p]:mt-4 [&amp;amp;_strong:has(+br)]:inline-block [&amp;amp;_strong:has(+br)]:pb-2"&gt;- It sends the token with API calls to FastAPI.&lt;/P&gt;
&lt;P class="my-2 [&amp;amp;+p]:mt-4 [&amp;amp;_strong:has(+br)]:inline-block [&amp;amp;_strong:has(+br)]:pb-2"&gt;- FastAPI authenticates using that token to run Databricks API calls as the user.&lt;/P&gt;
&lt;P class="my-2 [&amp;amp;+p]:mt-4 [&amp;amp;_strong:has(+br)]:inline-block [&amp;amp;_strong:has(+br)]:pb-2"&gt;This gives both apps seamless, consistent authentication and access control across your Databricks environment.​&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Wed, 15 Oct 2025 15:22:03 GMT</pubDate>
      <guid>https://community.databricks.com/t5/administration-architecture/user-token-forwarding-between-app/m-p/135016#M4220</guid>
      <dc:creator>sarahbhord</dc:creator>
      <dc:date>2025-10-15T15:22:03Z</dc:date>
    </item>
    <item>
      <title>Re: User Token Forwarding Between App?</title>
      <link>https://community.databricks.com/t5/administration-architecture/user-token-forwarding-between-app/m-p/135017#M4221</link>
      <description>&lt;P&gt;I've already tried sending the user token to the FASTAPI middleware but from what I remember the&amp;nbsp;x-forwarded-access-token gets lost when transmitting headers.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Oct 2025 15:24:07 GMT</pubDate>
      <guid>https://community.databricks.com/t5/administration-architecture/user-token-forwarding-between-app/m-p/135017#M4221</guid>
      <dc:creator>ctgchris</dc:creator>
      <dc:date>2025-10-15T15:24:07Z</dc:date>
    </item>
    <item>
      <title>Re: User Token Forwarding Between App?</title>
      <link>https://community.databricks.com/t5/administration-architecture/user-token-forwarding-between-app/m-p/135018#M4222</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/191644"&gt;@ctgchris&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Have you tried "&lt;SPAN&gt;On-Behalf-Of User Authorization"&amp;nbsp;&lt;A href="https://docs.databricks.com/aws/en/dev-tools/databricks-apps/auth#user-authorization" target="_blank"&gt;https://docs.databricks.com/aws/en/dev-tools/databricks-apps/auth#user-authorization&lt;/A&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Oct 2025 15:24:12 GMT</pubDate>
      <guid>https://community.databricks.com/t5/administration-architecture/user-token-forwarding-between-app/m-p/135018#M4222</guid>
      <dc:creator>NandiniN</dc:creator>
      <dc:date>2025-10-15T15:24:12Z</dc:date>
    </item>
    <item>
      <title>Re: User Token Forwarding Between App?</title>
      <link>https://community.databricks.com/t5/administration-architecture/user-token-forwarding-between-app/m-p/135019#M4223</link>
      <description>&lt;P&gt;Yes I've been using On behalf of user authorization the whole time.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Oct 2025 15:25:43 GMT</pubDate>
      <guid>https://community.databricks.com/t5/administration-architecture/user-token-forwarding-between-app/m-p/135019#M4223</guid>
      <dc:creator>ctgchris</dc:creator>
      <dc:date>2025-10-15T15:25:43Z</dc:date>
    </item>
    <item>
      <title>Re: User Token Forwarding Between App?</title>
      <link>https://community.databricks.com/t5/administration-architecture/user-token-forwarding-between-app/m-p/135020#M4224</link>
      <description>&lt;P&gt;Oh,&amp;nbsp;&lt;SPAN&gt;x-forwarded-access-token gets lost when transmitting headers, means FastAPI in your request path is not configured to forward or is actively stripping the header.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;You must manually set the &lt;CODE&gt;Authorization&lt;/CODE&gt; header when calling your FastAPI app.&lt;/P&gt;
&lt;P&gt;Ensure your Streamlit frontend explicitly sets the Authorization: Bearer &amp;lt;token&amp;gt; header using the token acquired from the Databricks runtime context. The FastAPI app should then be configured to read this standard Authorization header.&lt;/P&gt;
&lt;P&gt;Let me know how this goes.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Oct 2025 15:32:30 GMT</pubDate>
      <guid>https://community.databricks.com/t5/administration-architecture/user-token-forwarding-between-app/m-p/135020#M4224</guid>
      <dc:creator>NandiniN</dc:creator>
      <dc:date>2025-10-15T15:32:30Z</dc:date>
    </item>
    <item>
      <title>Re: User Token Forwarding Between App?</title>
      <link>https://community.databricks.com/t5/administration-architecture/user-token-forwarding-between-app/m-p/135024#M4225</link>
      <description>&lt;P&gt;I've tried again even thought I tried this before and the FastAPI is still never receiving the authorization bearer token because it appears to be getting stripped/removed by Databricks. Please look at my other post that I have to see what I'm talking about.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Oct 2025 15:53:08 GMT</pubDate>
      <guid>https://community.databricks.com/t5/administration-architecture/user-token-forwarding-between-app/m-p/135024#M4225</guid>
      <dc:creator>ctgchris</dc:creator>
      <dc:date>2025-10-15T15:53:08Z</dc:date>
    </item>
    <item>
      <title>Re: User Token Forwarding Between App?</title>
      <link>https://community.databricks.com/t5/administration-architecture/user-token-forwarding-between-app/m-p/135026#M4226</link>
      <description>&lt;P&gt;&lt;A href="http://%20https://community.databricks.com/t5/administration-architecture/user-obo-token-forwarding-between-apps/td-p/134914" target="_self"&gt;This&lt;/A&gt; post?&lt;/P&gt;</description>
      <pubDate>Wed, 15 Oct 2025 15:56:52 GMT</pubDate>
      <guid>https://community.databricks.com/t5/administration-architecture/user-token-forwarding-between-app/m-p/135026#M4226</guid>
      <dc:creator>NandiniN</dc:creator>
      <dc:date>2025-10-15T15:56:52Z</dc:date>
    </item>
    <item>
      <title>Re: User Token Forwarding Between App?</title>
      <link>https://community.databricks.com/t5/administration-architecture/user-token-forwarding-between-app/m-p/135027#M4227</link>
      <description>&lt;P&gt;the link u sent I cant open. its this one:&lt;BR /&gt;&lt;A href="https://community.databricks.com/t5/administration-architecture/user-obo-token-forwarding-between-apps/td-p/134914" target="_blank"&gt;User OBO Token Forwarding between apps - Databricks Community - 134914&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Oct 2025 15:58:26 GMT</pubDate>
      <guid>https://community.databricks.com/t5/administration-architecture/user-token-forwarding-between-app/m-p/135027#M4227</guid>
      <dc:creator>ctgchris</dc:creator>
      <dc:date>2025-10-15T15:58:26Z</dc:date>
    </item>
    <item>
      <title>Re: User Token Forwarding Between App?</title>
      <link>https://community.databricks.com/t5/administration-architecture/user-token-forwarding-between-app/m-p/135031#M4229</link>
      <description>&lt;P&gt;I know this is a stretch, but if you could test it yourself setting up a fastapi and streamlit app and trying to pass user token between them to see if it'll work that'd be ideal. Cause I have reason to believe it's not supported.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Oct 2025 16:08:09 GMT</pubDate>
      <guid>https://community.databricks.com/t5/administration-architecture/user-token-forwarding-between-app/m-p/135031#M4229</guid>
      <dc:creator>ctgchris</dc:creator>
      <dc:date>2025-10-15T16:08:09Z</dc:date>
    </item>
  </channel>
</rss>

