microsoft / microsoft/powerplatform-vscode
pac auth create using incorrect service root URL
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 277
- Forks
- 60
- Avg merge
- 1d 1h
- Merged PRs (30d)
- 14
Description
I am trying to create a new auth to a different dynamics enivorment other than my orgs default using:
pac auth create --environment https://xxx365dev.company.org --name xxxdev --deviceCode
I get the error of Error: Can't resolve AAD/OAuth authority for https://xxx365dev.company.org/api/data/v9
The issue is that my service root url that is should be using is https://xxx365dev.company.org/api/data/v9.1/
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 pac auth create --environment https://xxx365dev.company.org --name xxxdev --deviceCode and trace the authority resolution for the service root URL. Compare the failing /api/data/v9 URL with the reported /api/data/v9.1/ endpoint; done means authentication succeeds for a non-default Dynamics environment without regressing the default case.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- api, authentication, cli
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100