microsoft / Microsoft-Fabric-workload-development-sample

Demonstrates how to implement a Microsoft Fabric workload in .net and typescript
Other
30 stars 16 forks source link

How to get the DEV_AAD credentials to run only the FE? #145

Closed NaveenkumarMD closed 1 week ago

NaveenkumarMD commented 1 week ago

The webpack dev server started successfully, but it throws and error saying iFrame is Empty. Image


# The workload name should be alligned with the name defined in the WorkloadmManifest.xml
WORKLOAD_NAME=Org.WorkloadSample
WORKLOAD_BE_URL=https://localhost:5001

# These properties are used only in FE dev mode and are used to override AADConfig for obtaining AAD token in the client. 
# In non-FE dev mode, these values are taken from WorkloadmManifest.xml.
# Read more in authentication wiki
DEV_AAD_CONFIG_AUDIENCE=
DEV_AAD_CONFIG_APPID=
DEV_AAD_CONFIG_REDIRECT_URI=http://localhost:60006/close

I believe I should fill these creds to get the FE running. Where can I find these creds in the fabric account?

NaveenkumarMD commented 1 week ago

https://learn.microsoft.com/en-us/fabric/workload-development-kit/authentication-tutorial#configure-your-application-in-microsoft-entra-id-manually Followed this to get the creds. Updated the .env.dev with the creds, but still i'm getting the same error.

tdraganidis commented 1 week ago

I also get the same error as @NaveenkumarMD ! I have set the settings as described in the documentation.

anitamayorov commented 1 week ago

Hi @NaveenkumarMD @tdraganidis , can you please clarify your scenario?

  1. Were you able to connect successfully using DevGateway?
  2. Do you have a running local workload backend?
  3. The frontend part runs successfully after npm start?
  4. Also, please verify you have configured you .dev.env correctly, if you have an activityId of your session please attach it for us to investigate.
tdraganidis commented 1 week ago

Hi @anitamayorov

Thanks for your time. All the above are correct and now I can see the workload on the Fabric portal.

I was expecting that there would be a UI on the browser (not on the Fabric Portal), but as it seems this is not the case.

anitamayorov commented 1 week ago

Hi @tdraganidis , yes, the sample project has a UI only shown in Fabric portal, so when you run npm start you will see an empty page even if the server runs successfully.