Can we utilise Fabric connections in our workload? #17
-
We are integrating our web app with a Fabric workload. We currently have a similar connections object as Microsoft Fabric. Rather than requesting users to enter into our app, is there a way our workload (with the correct granted permissions), read and access the connection strings of Microsoft Fabric connections? |
Beta Was this translation helpful? Give feedback.
Answered by
anitamayorov
Jun 18, 2024
Replies: 1 comment 4 replies
-
Hi @willwainwright - can you please clarify your needs and usage? Do you mean connectors to different data stores? |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @willwainwright,
We do have examples in our Sample for such cases, for example the
GetTablesAsync
call in https://github.com/microsoft/Microsoft-Fabric-workload-development-sample/blob/main/Backend/src/Controllers/LakeHouseController.csYou first use workloadClientAPI to get the accessToken, then sending this to your workload backend (https://github.com/microsoft/Microsoft-Fabric-workload-development-sample/blob/main/Frontend/src/controller/LakehouseExplorerController.ts#L7)
and then by using OBO with the required scopes, you can issue a request to Fabric's REST API, in our Sample those are OneLake APIs.
So in that case the user token gets to workload backend and from there to all APIs…