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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error npx port auto(8080) different from redirect URI port. #157

Open
NovoaDev opened this issue Nov 20, 2022 Discussed in #52 · 0 comments
Open

Error npx port auto(8080) different from redirect URI port. #157

NovoaDev opened this issue Nov 20, 2022 Discussed in #52 · 0 comments

Comments

@NovoaDev
Copy link

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
DiferentPortNpx

Error when redirecting
Error8080

My solution

Manually assign a port that is free.

  1. Modify package.json.
    PackageMod

  2. Modify redirection aad.portal.azure configuration.
    SpaaadappMod

  3. Modify redirectUri in archive auth.js.
    AuthjsMod

Raise the service again and it worked :P
200OK

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

1 participant