forcedotcom / devops-center-feedback

61 stars 2 forks source link

Unable to add dev or test environments #195

Closed matteomini closed 2 years ago

matteomini commented 2 years ago

Describe the bug

I was following the steps on the configuration guide, but when I try to add the dev environment and click on "Log In" button the system redirects to https://login.salesforce.com/ instead of https://test.salesforce.com/.

The issue occurs even if I don't check the "Used for development" box.

During configuration I mistakenly deleted the three Auth. Providers automatically created when enabling the DevOps Center. So I manually created them again, without changing the default configuration.

I think this can cause the problem, but I don't know how to properly configure the Auth.Provider named DEVOPS_CENTER_TEST.

P.S. even trying to manually edit the url, it doesn't work. After the Login button click, the system redirects to an access error page.

To Reproduce

N.B. I don't know if the 1st step is reversible, so do it at your own risk.

  1. Delete the following Auth. Providers: DEVOPS_CENTER_GITHUB, DEVOPS_CENTER_PROD, DEVOPS_CENTER_TEST
  2. Manually create them by providing only "Name" and "URL Suffix", leaving any other field blank.
  3. Open the DevOps Center App, open a project then go to "Settings"
  4. Click "Add"
  5. Choose a Name for your environment, then select "Sandbox/Scratch Org"
  6. Check the "Used for development" box (this step is optional, it doesn't work both ways)
  7. Click on the "Log In" button
  8. The system redirects to https://login.salesforce.com

Expected behavior Be redirected to https://test.salesforce.com

Screenshots Cattura

noronmeridian commented 2 years ago

I also mistakenly deleted the three Auth, and I am having the same issue. Did you solved the problem ? if yes - How.

Thank You