microsoft / microsoft/msstore-cli
Persistent authorisation failure even with all correct credentials
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 163
- Forks
- 22
- Avg merge
- 5d 6h
- Merged PRs (30d)
- 10
Description
Ive checked all the credentials, followed step by set the configuration guide, still´, every time I want to run a command I get an authentication failure
07:24:46 fail: MSStore.CLI.Commands.Apps.ListCommand.Handler[0] Error while retrieving Managed Applications. MSStore.API.MSStoreException: Failed to get the applications - {"code":"Unauthorized","message":"Identity cannot be
authorized. CorrelationId: e9a8ae08-5a8f-4a06-9343-607fd33ecf4b"} ---> MSStore.API.MSStoreException: {"code":"Unauthorized","message":"Identity cannot be authorized. CorrelationId: e9a8ae08-5a8f-4a06-9343-607fd33ecf4b"} at
MSStore.API.SubmissionClient.InvokeAsync[T](HttpMethod httpMethod, String relativeUrl, Object requestContent, JsonTypeInfo`1 jsonTypeInfo, CancellationToken ct) in /_/MSStore.API/SubmissionClient.cs:line 287 at
MSStore.API.Packaged.StorePackagedAPI.GetDevCenterApplicationsAsync(Int32 skip, Int32 top, CancellationToken ct) in /_/MSStore.API/Packaged/StorePackagedAPI.cs:line 210 at
MSStore.API.Packaged.StorePackagedAPI.GetApplicationsAsync(CancellationToken ct) in /_/MSStore.API/Packaged/StorePackagedAPI.cs:line 188 --- End of inner exception stack trace --- at
MSStore.API.Packaged.StorePackagedAPI.GetApplicationsAsync(CancellationToken ct) in /_/MSStore.API/Packaged/StorePackagedAPI.cs:line 193 at
MSStore.CLI.Commands.Apps.ListCommand.Handler.<>c__DisplayClass5_0.<<InvokeAsync>b__0>d.MoveNext() in /_/MSStore.CLI/Commands/Apps/ListCommand.cs:line 40
Is there anything I could do, besides checking all credentials for the 7th time?
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 with MSStore.CLI/Commands/Apps/ListCommand.cs at line 40 and trace the failing request through MSStore.API/SubmissionClient.cs line 287 and StorePackagedAPI.cs lines 188 and 210. Compare the request and authentication configuration with the reported Unauthorized response, then document a reproducible cause and verified resolution.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- api, authentication, cli
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100