[BUG] Auth cannot be changed from the default / Save Users & Roles button fails to save and throws an error #1807

Closed
opened 2026-04-05 19:41:59 +02:00 by MrUnknownDE · 0 comments
Owner

Originally created by @gokussjx on 2/5/2025

Current Behavior: On hitting Save Users & Roles button, this error pops up and the save never succeeds:

Failed to set roles
Resource with that domain already exists

Image

Expected Behavior: As per the doc:

If you would like to disable Pangolin auth, you can disable the Use Platform SSO toggle.

In other words, disabling the foregoing option and hitting save should save successfully without any errors. Primarily, the Save Users & Roles button should save the configured option.

Image
(Thanks @hhftechnology for the screenshot^)

Steps to Reproduce:

  1. Download the latest version of the application. (v1.0.0 beta12)
  2. Install the application via the standard process from the doc.
  3. Create a few resources (may be 5, this bit isn't deterministic)
  4. Navigate to the Resources page > (pick a resource) > Authentication > Hit Save Users & Roles
  5. Try toggling the SSO switch or saving as is, but attempt to save at least 5 times.
  6. You should see a red error banner at bottom right.

Environment:

  • OS: Ubuntu
  • Application Version: v1.0.0 beta12

Additional Information:

  • Screenshot of error message attached.
  • Discord thread: link
  • Bug reproducible by @hhftechnology in the channel
*Originally created by @gokussjx on 2/5/2025* **Current Behavior:** On hitting `Save Users & Roles` button, this error pops up and the save never succeeds: > **Failed to set roles** > Resource with that domain already exists ![Image](https://github.com/user-attachments/assets/328f1b17-1f81-4dd8-a9f6-4399a09d8208) **Expected Behavior:** As per the [doc](https://docs.fossorial.io/Getting%20Started/quick-setup#5-add-targets-and-authentication): > If you would like to disable Pangolin auth, you can disable the `Use Platform SSO` toggle. In other words, disabling the foregoing option and hitting save should save successfully without any errors. Primarily, the `Save Users & Roles` button should save the configured option. ![Image](https://github.com/user-attachments/assets/da0e51bf-209b-44a6-a39f-bb5744fad1b1) (Thanks @hhftechnology for the screenshot^) **Steps to Reproduce:** 1. Download the latest version of the application. (`v1.0.0 beta12`) 2. Install the application via the standard process from the doc. 3. Create a few resources (may be 5, this bit isn't deterministic) 4. Navigate to the Resources page > (pick a resource) > Authentication > Hit `Save Users & Roles` 5. Try toggling the SSO switch or saving as is, but attempt to save at least 5 times. 6. You should see a red error banner at bottom right. **Environment:** - OS: Ubuntu - Application Version: v1.0.0 beta12 **Additional Information:** - Screenshot of error message attached. - Discord thread: [link](https://discord.com/channels/1325658630518865980/1336625963798364232/1336625963798364232) - Bug reproducible by @hhftechnology in the channel
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/pangolin#1807