Error npx port auto(8080) different from redirect URI port.
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 35/100
- Issue type
- Bug
- Clarity
- Needs clarification
- Activity status
- Stale
- Tech stack
- azure, javascript
- Domain
- authentication
Research direction
Start by reviewing package.json and auth.js, then compare their redirect-port settings with the redirect URI configured in the Azure portal. Reproduce the flow with npx http-server while port 8080 is unavailable; it is done when the running service's port matches the configured redirect URI and authentication completes successfully.
Written by the indexing model from the issue text.
Description
Error npx port auto(8080) different from redirect URI port.
In case someone gets the same thing that happens to me 😊.
In my case npx http-server assign a different port than 8080 sometimes 8081/8082 depending on the ports it has busy. This causes it to redirect to another service after getting the token and throwing an error.
Error scenario
Service up on 8081

Error when redirecting

My solution
Manually assign a port that is free.
-
Modify package.json.

-
Modify redirection aad.portal.azure configuration.

-
Modify redirectUri in archive auth.js.

Raise the service again and it worked :P

- Dominant language
- JavaScript
- Stars
- 183
- Forks
- 62
- Avg merge
- 17h 14m
- Merged PRs (30d)
- 1
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from microsoft/30daysof
-
Difficulty 5/5 Over a week Newbie friendliness 10/100
-
MSGraph Project Submission
-
MSGraph Project Submission
-
MSGraph Project Submission
-
Ordering App OpenMSGraph Project Submission
All issues in microsoft/30daysof
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
HarperFast/skills#96 ·
-
[Block] Latest Posts [Type] Bug
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Automattic/studio#4908 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
sugarlabs/musicblocks#8847 ·