Bug report: Login via Entra App doesnt work
Nobody has claimed this yet.
- 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
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.
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