microsoft / microsoft/powerplatform-vscode

pac auth create should check if environment exists

Open
#352 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
TypeScript
Stars
277
Forks
60
Avg merge
1d 1h
Merged PRs (30d)
14

Description

I wasted 2 hours yesterday to troubleshoot why pac solution sync was throwing an auth profile not found error. I finally figured out the environment url that I was using was incorrect. The environment name was env1, so I thought that the URL is env1.crm6.dynamics.com, but it was actually env1-dev.crm6.dynamics.com. I tried to repro this and I am able to run pac auth create for any environment. pac auth create has to fail with message if the environment URL is invalid. Saying that the authentication was successful is misleading and incorrect.

image

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 the issue with pac auth create using an incorrect environment URL, then trace the authentication command's validation and success reporting. Done means an invalid environment URL causes authentication to fail with a clear message instead of reporting success.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
authentication, cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.