pnp/cli-microsoft365

Bug report: Login via Entra App doesnt work

Open

#6,916 opened on Sep 19, 2025

View on GitHub
 (9 comments) (1 reaction) (0 assignees)TypeScript (399 forks)auto 404
bughelp wanted

Repository metrics

Stars
 (1,390 stars)
PR merge metrics
 (PR metrics pending)

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