microsoft / microsoft/azure-devops-auth-samples

Javascript Web App Sample fails with auth errors

Open
#90 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
277
Forks
307
Avg merge
3d 18h
Merged PRs (30d)
2

Description

I cloned the repo, ran NPM, created an app ID as described, and ran the app. Login completes successfully. However, when I click the "Call DevOps Rest API" button, nothing happens except an error in my chrome Windows that says:

ServerError: invalid_client: AADSTS650057: Invalid resource. The client has requested access to a resource which is not listed in the requested permissions in the client's application registration. Client app ID: [redacted]. Resource value from request: 499b84ac-1321-427f-aa17-267ca6975798. Resource app ID: 499b84ac-1321-427f-aa17-267ca6975798. List of valid resources from app registration: 00000003-0000-0000-c000-000000000000.
Trace ID: c9a71cf7-bc64-446e-80f0-b9dc47c35600
Correlation ID: ca198b06-4d06-4d45-8dfa-835540dd27ea
Timestamp: 2022-04-22 20:18:07Z

Is there a missing documentation step where I'm supposed to grant my app permissions to access resource 499b84ac-1321-427f-aa17-267ca6975798? How would I do that?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the Javascript Web App Sample setup instructions and the app-registration permissions used by the "Call DevOps Rest API" button. Reproduce the authentication flow and compare the requested resource with the registered permissions; done means the button successfully calls the DevOps REST API without the invalid_client error.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure, javascript
Domain
api, authentication
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.