pnp / pnp/cli-microsoft365

Bug report: Login via Entra App doesnt work

Open
#6,916 10 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

bug help wanted stale
Dominant language
TypeScript
Stars
1.5k
Forks
413
Avg merge
5d 6h
Merged PRs (30d)
21

Description

Priority

(Urgent) I can't use the CLI

Description

I have my Entra app registered based on guidance. When I tried to log in using browser, it returns error "The redirect URI 'http://localhost:xxxx' specified in the request does not match the redirect URIs configured for the application".

Steps to reproduce

m365 login -authType browser

Expected results

Login and have a token back

Actual results

Can not login

Diagnostics

No response

CLI for Microsoft 365 version

v10.11.0

nodejs version

v20.2.0

Operating system (environment)

Windows

Shell

PowerShell

cli doctor

No response

Additional Info

No response

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.

Research direction

Start by reproducing m365 login -authType browser on Windows with Node.js 20.2.0 and review the Entra app's configured redirect URIs against the URI in the error. Done means browser login completes and the CLI returns a token without the redirect URI mismatch.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure, node.js, typescript
Domain
authentication, cli
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.