Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Access token validation failed. #180

Open
vishnu01 opened this issue Dec 31, 2024 · 3 comments
Open

Access token validation failed. #180

vishnu01 opened this issue Dec 31, 2024 · 3 comments

Comments

@vishnu01
Copy link

vishnu01 commented Dec 31, 2024

Hi Fabric workload team,

we are facing Access token validation issues while trying to create our Fabric custom item in the workspace.

Audiences: '<app_id>'. Did not match: validationParameters.ValidAudience: 'api://localdevinstance/<tenant_id>/<workload_name>'

Image

we have following properties configured.

  • App id from manifest matches with appsettings.json
  • resource id from manifest matches with audience from appsettings.json
  • configured env.dev with proper audience and client ids.
@omgharra
Copy link
Collaborator

omgharra commented Jan 1, 2025

Hello Vishnu,

We kindly ask you to follow this documentation:
https://learn.microsoft.com/en-us/fabric/workload-development-kit/workload-cloud-setup
It explains step by step how to configure, including the audience, to ensure nothing is missed.

Please let us know if you need any further assistance.

@vishnu01
Copy link
Author

vishnu01 commented Jan 2, 2025

Hi,

We were trying Dev mode (not cloud mode) and followed below article but still we do see this access token validation issue.
https://learn.microsoft.com/en-us/fabric/workload-development-kit/authentication-tutorial

@IdanGoldfarb1989
Copy link
Contributor

Hi Vishnu,
Is it possible that you are using a V2 access token?
You can check this in your app manifest in Azure.
Specifically, look at the requestedAccessTokenVersion property.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants