[PR #2634] [MERGED] [management] improve zitadel idp error response detail by decoding errors #15420

Closed
opened 2026-08-05 03:07:37 -04:00 by saavagebueno · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netbirdio/netbird/pull/2634
Author: @adasauce
Created: 9/23/2024
Status: Merged
Merged: 9/27/2024
Merged by: @bcmmbaga

Base: mainHead: zitadel-improvements


📝 Commits (3)

  • 1176f2a [management] improve zitadel idp error response detail by decoding errors
  • e3cf807 [management] extend readZitadelError to be used for requestJWTToken
  • 9f697e8 fix lint

📊 Changes

2 files changed (+50 additions, -9 deletions)

View changed files

📝 management/server/idp/zitadel.go (+46 -3)
📝 management/server/idp/zitadel_test.go (+4 -6)

📄 Description

Describe your changes

Adds a zitadelErrorResponse struct to decode errors returned from zitadel rather than just returning a status code, so more information can be learned about potential configuration issues. Helped to diagnose #2616

I have some other small changes and improvements to compatibility later, but this was a pretty clear cut and standalone improvement.

Checklist

  • Is it a bug fix
  • Is a typo/documentation fix
  • Is a feature enhancement
  • It is a refactor
  • Created tests that fail without the change (if possible)
  • Extended the README / documentation, if necessary

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/netbirdio/netbird/pull/2634 **Author:** [@adasauce](https://github.com/adasauce) **Created:** 9/23/2024 **Status:** ✅ Merged **Merged:** 9/27/2024 **Merged by:** [@bcmmbaga](https://github.com/bcmmbaga) **Base:** `main` ← **Head:** `zitadel-improvements` --- ### 📝 Commits (3) - [`1176f2a`](https://github.com/netbirdio/netbird/commit/1176f2a2f5887ad185c5e30e1be4a1b0fb9c993a) [management] improve zitadel idp error response detail by decoding errors - [`e3cf807`](https://github.com/netbirdio/netbird/commit/e3cf8071c546d0c382adc6e7eb339874999e1e74) [management] extend readZitadelError to be used for requestJWTToken - [`9f697e8`](https://github.com/netbirdio/netbird/commit/9f697e8e14a6127be1e624dd5754c7ff33da3e60) fix lint ### 📊 Changes **2 files changed** (+50 additions, -9 deletions) <details> <summary>View changed files</summary> 📝 `management/server/idp/zitadel.go` (+46 -3) 📝 `management/server/idp/zitadel_test.go` (+4 -6) </details> ### 📄 Description ## Describe your changes Adds a zitadelErrorResponse struct to decode errors returned from zitadel rather than just returning a status code, so more information can be learned about potential configuration issues. Helped to diagnose #2616 I have some other small changes and improvements to compatibility later, but this was a pretty clear cut and standalone improvement. ### Checklist - [ ] Is it a bug fix - [ ] Is a typo/documentation fix - [x] Is a feature enhancement - [ ] It is a refactor - [ ] Created tests that fail without the change (if possible) - [ ] Extended the README / documentation, if necessary --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
saavagebueno added the pull-request label 2026-08-05 03:07:37 -04:00
Sign in to join this conversation.
No Label pull-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: DYNR/netbird#15420