What happened?
I am trying to build a rayfin app by exposing my Fabric Data Agent so that end user can launch this Fabric App portal to chat with Fabric agent that I built. However, the Fabric app keep failing with authentication error
"Error: No Fabric API token. Complete Azure Portal API Permissions (Fabric API, Admin Consent) or set VITE_FABRIC_AGENT_TOKEN in env.local and rebuild."
I would like the Fabric app to use simple authentication per logged in user to Fabric Tenant's workspace. Whoever granted contributor access to the workspace, should be able to launch this Fabric app and chat with Fabric data agent. How do I go about to achieve this ?
Steps to reproduce
- run npm create @microsoft/rayfin@latest -- SupplyChain_V2 --workspace 'xxx'
- selected msft template
- selected bare bone app
- followed the rest of the instruction, then execute npm run dev
- move over to Copilot Chat windows in my VS code, then prompt :
Build an Agentic front end App for Veridian Consumer Brands which is a mid-sized Consumer Packaged Goods manufacturer. Taking design inspiration from 03_Inputs\Requirements\CGS Commercial_AI4BI Demo_Slides.pdf - slide #4. Hook up to Fabric Data Agent here :
[https://api.fabric.microsoft.com/v1/mcp/workspaces/{WorkspaceId}/dataagents/{DataAgentId}/agent]
-- I put in the proper URL copied from Fabric Data Agent MCP section
1) Give the Fabric App a nice Logo & Branded Header design for Veridian CPG company
2) KPI Bar - 6 CPG metrics — Revenue, Volume, Gross Margin, Market Share, On-Shelf Availability, Promo ROI. Place it on top of the page.
3) AI Chat - Streaming responses from the Fabric Data Agent with typing indicator and stop button. Give enough space between this KPI Bar and AI Chat section so that this section stands out in the UI as the focal point.
4) Suggested Prompts: 6 CPG-relevant questions or suggested prompts to the bottom. This should not be the focal point on this page. It should smaller font and taking up smaller real estate and appear at the bottom of this page.
Follow the instructions how to query a published data agent through it's MCP endpoint to authenticate in this front end app you are building. You will find the instruction here Fabric data agent Python SDK (preview) - Microsoft Fabric | Microsoft Learn , under the topic "Query a published data agent"
User permission to Fabric tenant should be used to access the Fabric app and Fabric Data Agent and it's backend data. Co's the user granted access to fabric workspace and therefore should be used for authentication and authorization to ALL fabric items without additional security or permission setup.
Environment
No response
Logs or screenshots
What happened?
I am trying to build a rayfin app by exposing my Fabric Data Agent so that end user can launch this Fabric App portal to chat with Fabric agent that I built. However, the Fabric app keep failing with authentication error
"Error: No Fabric API token. Complete Azure Portal API Permissions (Fabric API, Admin Consent) or set VITE_FABRIC_AGENT_TOKEN in env.local and rebuild."
I would like the Fabric app to use simple authentication per logged in user to Fabric Tenant's workspace. Whoever granted contributor access to the workspace, should be able to launch this Fabric app and chat with Fabric data agent. How do I go about to achieve this ?
Steps to reproduce
Build an Agentic front end App for Veridian Consumer Brands which is a mid-sized Consumer Packaged Goods manufacturer. Taking design inspiration from 03_Inputs\Requirements\CGS Commercial_AI4BI Demo_Slides.pdf - slide #4. Hook up to Fabric Data Agent here :
[https://api.fabric.microsoft.com/v1/mcp/workspaces/{WorkspaceId}/dataagents/{DataAgentId}/agent]
-- I put in the proper URL copied from Fabric Data Agent MCP section
Follow the instructions how to query a published data agent through it's MCP endpoint to authenticate in this front end app you are building. You will find the instruction here Fabric data agent Python SDK (preview) - Microsoft Fabric | Microsoft Learn , under the topic "Query a published data agent"
User permission to Fabric tenant should be used to access the Fabric app and Fabric Data Agent and it's backend data. Co's the user granted access to fabric workspace and therefore should be used for authentication and authorization to ALL fabric items without additional security or permission setup.
Environment
No response
Logs or screenshots