Skip to content

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

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
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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions