protected-api-access-protected-api - sample call returning 404

Open
#88 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
30/100
Issue type
Documentation
Clarity
Needs clarification
Activity status
Stale
Tech stack
javascript

Research direction

Start by following the README for the "protected-api-access-protected-api" sample and reproduce the request to http://localhost:8080/me with the stated Authorization header. Compare the sample instructions with the expected user-info response and update the documentation or sample guidance so the protected API call works as described.

Written by the indexing model from the issue text.

Description

Please provide us with the following information:

This issue is for a: (mark with an x)
- [ ] bug report -> please search issues before submitting
- [ ] feature request
- [X ] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)
Minimal steps to reproduce

Follow the Readme for sample "protected-api-access-protected-api"

Any log messages given by the failure

unable to get a response to

http://localhost:8080/me with an Authorization header of Bearer {VALID-ACCESS-TOKEN}.

The Bearer {VALID-ACCESS-TOKEN}has permissions (scp: User_impersonation)

Expected/desired behavior

The api should return user info

OS and Version?

Windows11.

Versions
Mention any other details that might be useful

I have asked a question here - https://learn.microsoft.com/en-us/answers/questions/1344784/on-behalf-of-flow-configuration-web-app-calls-web?page=1&orderby=helpful&comment=answer-1300064

and got a little ahead, But sample is still not working

Dominant language
JavaScript
Stars
63
Forks
63
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

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.

More from Azure-Samples/ms-identity-docs-code-javascript

All issues in Azure-Samples/ms-identity-docs-code-javascript

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.