[PR #1039] [MERGED] Handle authentication errors in PKCE flow #13252

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

📋 Pull Request Information

Original PR: https://github.com/netbirdio/netbird/pull/1039
Author: @bcmmbaga
Created: 7/31/2023
Status: Merged
Merged: 7/31/2023
Merged by: @mlsmaycon

Base: mainHead: fix/pkce_client_authentication


📝 Commits (2)

  • 8729a38 handle authentication errors in PKCE flow
  • dd82e91 remove shadowing and replace TokenEndpoint for PKCE config

📊 Changes

2 files changed (+37 additions, -30 deletions)

View changed files

📝 client/internal/auth/pkce_flow.go (+11 -4)
📝 management/cmd/management.go (+26 -26)

📄 Description

Describe your changes

Added error handling in PKCE flow to detect and return authentication errors.

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/1039 **Author:** [@bcmmbaga](https://github.com/bcmmbaga) **Created:** 7/31/2023 **Status:** ✅ Merged **Merged:** 7/31/2023 **Merged by:** [@mlsmaycon](https://github.com/mlsmaycon) **Base:** `main` ← **Head:** `fix/pkce_client_authentication` --- ### 📝 Commits (2) - [`8729a38`](https://github.com/netbirdio/netbird/commit/8729a38b75e9f1a4366f3207670a48a426d1f3d7) handle authentication errors in PKCE flow - [`dd82e91`](https://github.com/netbirdio/netbird/commit/dd82e9177abb71e3c15b81aff4754acd0217ed0d) remove shadowing and replace TokenEndpoint for PKCE config ### 📊 Changes **2 files changed** (+37 additions, -30 deletions) <details> <summary>View changed files</summary> 📝 `client/internal/auth/pkce_flow.go` (+11 -4) 📝 `management/cmd/management.go` (+26 -26) </details> ### 📄 Description ## Describe your changes Added error handling in PKCE flow to detect and return authentication errors. ## Issue ticket number and link ### Checklist - [x] 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 --- <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 02:07:53 -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#13252